home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1993 / Internet Info CD-ROM (Walnut Creek) (1993).iso / networking / mail / mh / contrib / queuemh / queuemh.tar < prev    next >
Tape Archive  |  1992-02-08  |  176.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Tape Archive (archive/tar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file queuemh/, mode 755 , uid 26431 , gid 12 , size 0 , seconds 4741673072 default
98% file data default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 71 75 65 75 65 6d 68 2f | 00 00 00 00 00 00 00 00 |queuemh/|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 32 36 34 |.... 7|55 . 264|
|00000070| 33 31 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |31 . |12 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 37 34 31 36 37 33 | 0 | 4741673|
|00000090| 30 37 32 20 20 20 35 35 | 34 36 00 20 00 00 00 00 |072 55|46. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 71 75 65 75 65 6d 68 2f | 62 69 6e 2f 00 00 00 00 |queuemh/|bin/....|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 32 36 34 |.... 7|55 . 264|
|00000270| 33 31 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |31 . |12 . |
|00000280| 20 20 20 20 20 20 30 20 | 20 35 30 32 36 32 34 36 | 0 | 5026246|
|00000290| 31 33 31 20 20 20 36 33 | 30 33 00 20 00 00 00 00 |131 63|03. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 71 75 65 75 65 6d 68 2f | 62 69 6e 2f 52 43 53 2f |queuemh/|bin/RCS/|
|00000410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 32 36 34 |.... 7|55 . 264|
|00000470| 33 31 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |31 . |12 . |
|00000480| 20 20 20 20 20 20 30 20 | 20 35 30 32 36 32 31 35 | 0 | 5026215|
|00000490| 35 36 36 20 20 20 36 37 | 34 32 00 20 00 00 00 00 |566 67|42. ....|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 71 75 65 75 65 6d 68 2f | 62 69 6e 2f 52 43 53 2f |queuemh/|bin/RCS/|
|00000610| 67 6c 6f 6d 2e 6d 68 2c | 76 00 00 00 00 00 00 00 |glom.mh,|v.......|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 20 20 20 34 | 30 30 20 00 20 32 36 34 |.... 4|00 . 264|
|00000670| 33 31 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |31 . |12 . |
|00000680| 20 20 31 33 31 31 30 20 | 20 35 30 32 36 32 31 35 | 13110 | 5026215|
|00000690| 35 36 35 20 20 31 30 35 | 35 36 00 20 00 00 00 00 |565 105|56. ....|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 68 65 61 64 20 20 20 20 | 20 31 2e 35 3b 0a 62 72 |head | 1.5;.br|
|00000810| 61 6e 63 68 20 20 20 3b | 0a 61 63 63 65 73 73 20 |anch ;|.access |
|00000820| 20 20 3b 0a 73 79 6d 62 | 6f 6c 73 20 20 3b 0a 6c | ;.symb|ols ;.l|
|00000830| 6f 63 6b 73 20 20 20 20 | 3b 20 73 74 72 69 63 74 |ocks |; strict|
|00000840| 3b 0a 63 6f 6d 6d 65 6e | 74 20 20 40 40 3b 0a 0a |;.commen|t @@;..|
|00000850| 0a 31 2e 35 0a 64 61 74 | 65 20 20 20 20 20 39 31 |.1.5.dat|e 91|
|00000860| 2e 30 36 2e 31 34 2e 31 | 33 2e 33 39 2e 31 36 3b |.06.14.1|3.39.16;|
|00000870| 20 20 61 75 74 68 6f 72 | 20 64 79 6b 65 72 3b 20 | author| dyker; |
|00000880| 20 73 74 61 74 65 20 45 | 78 70 3b 0a 62 72 61 6e | state E|xp;.bran|
|00000890| 63 68 65 73 20 3b 0a 6e | 65 78 74 20 20 20 20 20 |ches ;.n|ext |
|000008a0| 31 2e 34 3b 0a 0a 31 2e | 34 0a 64 61 74 65 20 20 |1.4;..1.|4.date |
|000008b0| 20 20 20 39 30 2e 30 38 | 2e 30 36 2e 30 38 2e 30 | 90.08|.06.08.0|
|000008c0| 32 2e 31 39 3b 20 20 61 | 75 74 68 6f 72 20 64 79 |2.19; a|uthor dy|
|000008d0| 6b 65 72 3b 20 20 73 74 | 61 74 65 20 45 78 70 3b |ker; st|ate Exp;|
|000008e0| 0a 62 72 61 6e 63 68 65 | 73 20 3b 0a 6e 65 78 74 |.branche|s ;.next|
|000008f0| 20 20 20 20 20 31 2e 33 | 3b 0a 0a 31 2e 33 0a 64 | 1.3|;..1.3.d|
|00000900| 61 74 65 20 20 20 20 20 | 39 30 2e 30 35 2e 32 33 |ate |90.05.23|
|00000910| 2e 31 39 2e 30 31 2e 33 | 34 3b 20 20 61 75 74 68 |.19.01.3|4; auth|
|00000920| 6f 72 20 64 79 6b 65 72 | 3b 20 20 73 74 61 74 65 |or dyker|; state|
|00000930| 20 45 78 70 3b 0a 62 72 | 61 6e 63 68 65 73 20 3b | Exp;.br|anches ;|
|00000940| 0a 6e 65 78 74 20 20 20 | 20 20 31 2e 32 3b 0a 0a |.next | 1.2;..|
|00000950| 31 2e 32 0a 64 61 74 65 | 20 20 20 20 20 39 30 2e |1.2.date| 90.|
|00000960| 30 35 2e 32 32 2e 31 31 | 2e 30 31 2e 35 30 3b 20 |05.22.11|.01.50; |
|00000970| 20 61 75 74 68 6f 72 20 | 64 79 6b 65 72 3b 20 20 | author |dyker; |
|00000980| 73 74 61 74 65 20 45 78 | 70 3b 0a 62 72 61 6e 63 |state Ex|p;.branc|
|00000990| 68 65 73 20 3b 0a 6e 65 | 78 74 20 20 20 20 20 31 |hes ;.ne|xt 1|
|000009a0| 2e 31 3b 0a 0a 31 2e 31 | 0a 64 61 74 65 20 20 20 |.1;..1.1|.date |
|000009b0| 20 20 39 30 2e 30 35 2e | 32 31 2e 31 33 2e 34 34 | 90.05.|21.13.44|
|000009c0| 2e 35 33 3b 20 20 61 75 | 74 68 6f 72 20 64 79 6b |.53; au|thor dyk|
|000009d0| 65 72 3b 20 20 73 74 61 | 74 65 20 45 78 70 3b 0a |er; sta|te Exp;.|
|000009e0| 62 72 61 6e 63 68 65 73 | 20 3b 0a 6e 65 78 74 20 |branches| ;.next |
|000009f0| 20 20 20 20 3b 0a 0a 0a | 64 65 73 63 0a 40 43 6f | ;...|desc.@Co|
|00000a00| 6d 62 69 6e 65 20 74 77 | 6f 20 71 75 65 75 65 20 |mbine tw|o queue |
|00000a10| 6d 65 73 73 61 67 65 73 | 20 69 6e 74 6f 20 6f 6e |messages| into on|
|00000a20| 65 0a 40 0a 0a 0a 31 2e | 35 0a 6c 6f 67 0a 40 61 |e.@...1.|5.log.@a|
|00000a30| 64 64 20 43 43 20 77 69 | 64 74 68 20 35 31 32 0a |dd CC wi|dth 512.|
|00000a40| 40 0a 74 65 78 74 0a 40 | 23 21 2f 62 69 6e 2f 63 |@.text.@|#!/bin/c|
|00000a50| 73 68 20 2d 66 62 0a 0a | 75 6d 61 73 6b 20 30 30 |sh -fb..|umask 00|
|00000a60| 37 0a 73 65 74 20 70 61 | 74 68 20 3d 20 28 2f 62 |7.set pa|th = (/b|
|00000a70| 69 6e 20 2f 75 73 72 2f | 6e 65 77 2f 6d 68 29 0a |in /usr/|new/mh).|
|00000a80| 0a 75 6e 73 65 74 65 6e | 76 20 47 4c 4f 4d 4d 53 |.unseten|v GLOMMS|
|00000a90| 47 0a 75 6e 73 65 74 20 | 47 4c 4f 4d 4d 53 47 0a |G.unset |GLOMMSG.|
|00000aa0| 75 6e 73 65 74 65 6e 76 | 20 4d 53 47 53 0a 73 65 |unsetenv| MSGS.se|
|00000ab0| 74 20 4d 53 47 53 0a 73 | 65 74 20 41 44 44 20 3d |t MSGS.s|et ADD =|
|00000ac0| 20 30 0a 0a 66 6f 72 65 | 61 63 68 20 73 74 72 69 | 0..fore|ach stri|
|00000ad0| 6e 67 20 28 24 61 72 67 | 76 29 0a 20 20 20 20 73 |ng ($arg|v). s|
|00000ae0| 77 69 74 63 68 20 28 24 | 73 74 72 69 6e 67 29 0a |witch ($|string).|
|00000af0| 09 63 61 73 65 20 22 2d | 61 22 3a 0a 09 63 61 73 |.case "-|a":..cas|
|00000b00| 65 20 22 2d 61 64 64 22 | 3a 0a 09 09 73 65 74 20 |e "-add"|:...set |
|00000b10| 41 44 44 20 3d 20 31 0a | 09 09 62 72 65 61 6b 73 |ADD = 1.|..breaks|
|00000b20| 77 0a 09 63 61 73 65 20 | 22 2b 2a 22 3a 0a 09 09 |w..case |"+*":...|
|00000b30| 73 65 74 20 46 4f 4c 44 | 45 52 20 3d 20 60 65 63 |set FOLD|ER = `ec|
|00000b40| 68 6f 20 24 73 74 72 69 | 6e 67 20 7c 20 73 65 64 |ho $stri|ng | sed|
|00000b50| 20 2d 65 20 73 2f 5e 2b | 2f 2f 60 0a 09 20 20 20 | -e s/^+|//`.. |
|00000b60| 20 62 72 65 61 6b 73 77 | 0a 09 63 61 73 65 20 22 | breaksw|..case "|
|00000b70| 5b 30 2d 39 5d 2a 22 3a | 0a 09 09 69 66 20 28 24 |[0-9]*":|...if ($|
|00000b80| 3f 47 4c 4f 4d 4d 53 47 | 20 3d 3d 20 30 29 20 74 |?GLOMMSG| == 0) t|
|00000b90| 68 65 6e 0a 09 09 09 73 | 65 74 20 47 4c 4f 4d 4d |hen....s|et GLOMM|
|00000ba0| 53 47 20 3d 20 24 73 74 | 72 69 6e 67 0a 09 09 65 |SG = $st|ring...e|
|00000bb0| 6c 73 65 0a 09 09 09 73 | 65 74 20 4d 53 47 53 20 |lse....s|et MSGS |
|00000bc0| 3d 20 28 24 4d 53 47 53 | 20 24 73 74 72 69 6e 67 |= ($MSGS| $string|
|00000bd0| 29 0a 09 09 65 6e 64 69 | 66 0a 09 20 20 20 20 62 |)...endi|f.. b|
|00000be0| 72 65 61 6b 73 77 0a 09 | 63 61 73 65 20 22 2d 68 |reaksw..|case "-h|
|00000bf0| 22 3a 0a 09 63 61 73 65 | 20 22 2d 68 65 6c 70 22 |":..case| "-help"|
|00000c00| 3a 0a 09 64 65 66 61 75 | 6c 74 3a 0a 09 09 67 6f |:..defau|lt:...go|
|00000c10| 74 6f 20 55 53 41 47 45 | 0a 20 20 20 20 65 6e 64 |to USAGE|. end|
|00000c20| 73 77 0a 65 6e 64 0a 0a | 69 66 20 28 24 3f 46 4f |sw.end..|if ($?FO|
|00000c30| 4c 44 45 52 20 3d 3d 20 | 30 29 20 74 68 65 6e 0a |LDER == |0) then.|
|00000c40| 09 73 65 74 20 46 4f 4c | 44 45 52 20 3d 20 60 66 |.set FOL|DER = `f|
|00000c50| 6f 6c 64 65 72 20 2d 66 | 61 73 74 60 0a 65 6e 64 |older -f|ast`.end|
|00000c60| 69 66 0a 0a 69 66 20 28 | 24 3f 47 4c 4f 4d 4d 53 |if..if (|$?GLOMMS|
|00000c70| 47 20 3d 3d 20 30 29 20 | 67 6f 74 6f 20 55 53 41 |G == 0) |goto USA|
|00000c80| 47 45 0a 0a 73 65 74 20 | 47 4c 4f 4d 4d 53 47 20 |GE..set |GLOMMSG |
|00000c90| 3d 20 60 70 69 63 6b 20 | 2b 24 46 4f 4c 44 45 52 |= `pick |+$FOLDER|
|00000ca0| 20 24 47 4c 4f 4d 4d 53 | 47 60 0a 69 66 20 28 24 | $GLOMMS|G`.if ($|
|00000cb0| 73 74 61 74 75 73 29 20 | 74 68 65 6e 0a 09 65 63 |status) |then..ec|
|00000cc0| 68 6f 20 67 6c 6f 6d 3a | 20 66 69 72 73 74 20 6d |ho glom:| first m|
|00000cd0| 65 73 73 61 67 65 20 69 | 73 20 69 6e 76 61 6c 69 |essage i|s invali|
|00000ce0| 64 0a 09 65 78 69 74 28 | 31 29 0a 65 6e 64 69 66 |d..exit(|1).endif|
|00000cf0| 0a 0a 69 66 20 28 24 23 | 47 4c 4f 4d 4d 53 47 20 |..if ($#|GLOMMSG |
|00000d00| 3e 20 31 29 20 74 68 65 | 6e 0a 09 73 65 74 20 4d |> 1) the|n..set M|
|00000d10| 53 47 53 20 3d 20 28 24 | 47 4c 4f 4d 4d 53 47 5b |SGS = ($|GLOMMSG[|
|00000d20| 32 2d 5d 20 24 4d 53 47 | 53 29 0a 09 73 65 74 20 |2-] $MSG|S)..set |
|00000d30| 47 4c 4f 4d 4d 53 47 20 | 3d 20 24 47 4c 4f 4d 4d |GLOMMSG |= $GLOMM|
|00000d40| 53 47 5b 31 5d 0a 65 6e | 64 69 66 0a 0a 23 20 74 |SG[1].en|dif..# t|
|00000d50| 68 69 73 20 70 75 74 73 | 20 74 68 65 20 6d 65 73 |his puts| the mes|
|00000d60| 73 61 67 65 73 20 69 6e | 20 6e 75 6d 65 72 69 63 |sages in| numeric|
|00000d70| 61 6c 20 6f 72 64 65 72 | 2c 20 74 68 72 6f 77 69 |al order|, throwi|
|00000d80| 6e 67 20 6f 75 74 20 69 | 6e 76 61 6c 69 64 0a 23 |ng out i|nvalid.#|
|00000d90| 20 6d 65 73 73 61 67 65 | 20 6e 75 6d 62 65 72 73 | message| numbers|
|00000da0| 0a 69 66 20 28 24 41 44 | 44 20 21 3d 20 31 29 20 |.if ($AD|D != 1) |
|00000db0| 74 68 65 6e 0a 09 73 65 | 74 20 4d 53 47 53 20 3d |then..se|t MSGS =|
|00000dc0| 20 60 70 69 63 6b 20 2b | 24 46 4f 4c 44 45 52 20 | `pick +|$FOLDER |
|00000dd0| 24 47 4c 4f 4d 4d 53 47 | 20 24 4d 53 47 53 60 0a |$GLOMMSG| $MSGS`.|
|00000de0| 09 69 66 20 28 24 73 74 | 61 74 75 73 29 20 74 68 |.if ($st|atus) th|
|00000df0| 65 6e 0a 09 09 65 63 68 | 6f 20 67 6c 6f 6d 3a 20 |en...ech|o glom: |
|00000e00| 69 6e 76 61 6c 69 64 20 | 6d 65 73 73 61 67 65 20 |invalid |message |
|00000e10| 69 6e 20 6c 69 73 74 0a | 09 09 65 78 69 74 28 31 |in list.|..exit(1|
|00000e20| 29 0a 09 65 6e 64 69 66 | 0a 65 6c 73 65 0a 09 73 |)..endif|.else..s|
|00000e30| 65 74 20 4d 53 47 53 20 | 3d 20 60 70 69 63 6b 20 |et MSGS |= `pick |
|00000e40| 2b 24 46 4f 4c 44 45 52 | 20 24 4d 53 47 53 60 0a |+$FOLDER| $MSGS`.|
|00000e50| 09 69 66 20 28 24 73 74 | 61 74 75 73 29 20 74 68 |.if ($st|atus) th|
|00000e60| 65 6e 0a 09 09 65 63 68 | 6f 20 67 6c 6f 6d 3a 20 |en...ech|o glom: |
|00000e70| 69 6e 76 61 6c 69 64 20 | 6d 65 73 73 61 67 65 20 |invalid |message |
|00000e80| 69 6e 20 6c 69 73 74 0a | 09 09 65 78 69 74 28 31 |in list.|..exit(1|
|00000e90| 29 0a 09 65 6e 64 69 66 | 0a 65 6e 64 69 66 0a 0a |)..endif|.endif..|
|00000ea0| 73 65 74 20 50 49 44 20 | 20 20 20 20 20 3d 20 24 |set PID | = $|
|00000eb0| 24 0a 73 65 74 20 4d 48 | 50 41 54 48 20 20 20 3d |$.set MH|PATH =|
|00000ec0| 20 60 6d 68 70 61 74 68 | 20 2b 24 46 4f 4c 44 45 | `mhpath| +$FOLDE|
|00000ed0| 52 60 0a 73 65 74 20 54 | 4d 50 46 49 4c 45 20 20 |R`.set T|MPFILE |
|00000ee0| 3d 20 2f 74 6d 70 2f 67 | 6c 6f 6d 6d 73 67 2e 24 |= /tmp/g|lommsg.$|
|00000ef0| 50 49 44 0a 73 65 74 20 | 42 4f 44 59 46 4f 52 4d |PID.set |BODYFORM|
|00000f00| 20 3d 20 7e 24 46 4f 4c | 44 45 52 2f 4d 61 69 6c | = ~$FOL|DER/Mail|
|00000f10| 2f 67 6c 6f 6d 2e 62 6f | 64 79 2e 66 6f 72 6d 61 |/glom.bo|dy.forma|
|00000f20| 74 0a 73 65 74 20 54 4f | 20 20 20 20 20 20 20 3d |t.set TO| =|
|00000f30| 20 24 46 4f 4c 44 45 52 | 0a 73 65 74 20 46 52 4f | $FOLDER|.set FRO|
|00000f40| 4d 20 20 20 20 20 3d 20 | 24 55 53 45 52 0a 73 65 |M = |$USER.se|
|00000f50| 74 20 44 41 54 45 20 20 | 20 20 20 3d 20 60 64 61 |t DATE | = `da|
|00000f60| 74 65 60 0a 73 65 74 20 | 53 55 42 4a 45 43 54 0a |te`.set |SUBJECT.|
|00000f70| 73 65 74 20 43 43 0a 0a | 69 66 20 28 24 41 44 44 |set CC..|if ($ADD|
|00000f80| 29 20 74 68 65 6e 0a 20 | 20 20 20 23 20 4d 61 6b |) then. | # Mak|
|00000f90| 65 20 73 75 72 65 20 67 | 6c 6f 6d 20 6d 65 73 73 |e sure g|lom mess|
|00000fa0| 61 67 65 20 69 73 20 76 | 61 6c 69 64 0a 20 20 20 |age is v|alid. |
|00000fb0| 20 73 65 74 20 68 69 74 | 73 20 3d 20 60 70 69 63 | set hit|s = `pic|
|00000fc0| 6b 20 2b 24 46 4f 4c 44 | 45 52 20 2d 6e 6f 70 75 |k +$FOLD|ER -nopu|
|00000fd0| 62 6c 69 63 20 2d 73 65 | 71 20 67 6c 6f 6d 20 24 |blic -se|q glom $|
|00000fe0| 47 4c 4f 4d 4d 53 47 20 | 7c 26 20 63 61 74 60 0a |GLOMMSG ||& cat`.|
|00000ff0| 20 20 20 20 69 66 20 28 | 22 24 68 69 74 73 22 20 | if (|"$hits" |
|00001000| 3d 3d 20 22 70 69 63 6b | 3a 22 29 20 74 68 65 6e |== "pick|:") then|
|00001010| 0a 20 20 20 20 20 20 20 | 20 65 63 68 6f 20 67 6c |. | echo gl|
|00001020| 6f 6d 3a 20 62 61 64 20 | 67 6c 6f 6d 2d 6d 65 73 |om: bad |glom-mes|
|00001030| 73 61 67 65 0a 20 20 20 | 20 20 20 20 20 65 78 69 |sage. | exi|
|00001040| 74 28 31 29 0a 20 20 20 | 20 65 6e 64 69 66 0a 20 |t(1). | endif. |
|00001050| 20 20 20 69 66 20 28 22 | 24 68 69 74 73 22 20 21 | if ("|$hits" !|
|00001060| 3d 20 22 31 20 68 69 74 | 22 29 20 74 68 65 6e 0a |= "1 hit|") then.|
|00001070| 20 20 20 20 20 20 20 20 | 65 63 68 6f 20 67 6c 6f | |echo glo|
|00001080| 6d 3a 20 63 61 6e 20 6f | 6e 6c 79 20 61 64 64 20 |m: can o|nly add |
|00001090| 74 6f 20 6f 6e 65 20 67 | 6c 6f 6d 2d 6d 65 73 73 |to one g|lom-mess|
|000010a0| 61 67 65 0a 20 20 20 20 | 20 20 20 20 65 78 69 74 |age. | exit|
|000010b0| 28 31 29 0a 20 20 20 20 | 65 6e 64 69 66 0a 20 20 |(1). |endif. |
|000010c0| 20 20 23 20 4d 61 6b 65 | 20 73 75 72 65 20 77 65 | # Make| sure we|
|000010d0| 20 61 72 65 20 61 64 64 | 69 6e 67 20 74 6f 20 70 | are add|ing to p|
|000010e0| 72 65 76 69 6f 75 73 6c | 79 20 67 6c 6f 6d 6d 65 |reviousl|y glomme|
|000010f0| 64 20 6d 65 73 73 61 67 | 65 0a 20 20 20 20 23 20 |d messag|e. # |
|00001100| 53 65 65 20 63 72 65 61 | 74 69 6f 6e 20 6f 66 20 |See crea|tion of |
|00001110| 6d 65 73 73 61 67 65 20 | 62 65 6c 6f 77 20 61 6e |message |below an|
|00001120| 64 20 6e 6f 74 69 63 65 | 20 74 68 61 74 20 61 20 |d notice| that a |
|00001130| 67 6c 6f 6d 3a 0a 20 20 | 20 20 23 20 66 69 65 6c |glom:. | # fiel|
|00001140| 64 20 69 73 20 61 64 64 | 65 64 20 66 6f 72 20 74 |d is add|ed for t|
|00001150| 68 69 73 20 70 75 72 70 | 6f 73 65 2e 0a 20 20 20 |his purp|ose.. |
|00001160| 20 73 65 74 20 54 45 4d | 50 56 41 52 20 3d 20 60 | set TEM|PVAR = `|
|00001170| 73 63 61 6e 20 2b 24 46 | 4f 4c 44 45 52 20 24 47 |scan +$F|OLDER $G|
|00001180| 4c 4f 4d 4d 53 47 20 2d | 66 6f 72 6d 61 74 20 22 |LOMMSG -|format "|
|00001190| 25 7b 67 6c 6f 6d 7d 22 | 60 0a 20 20 20 20 69 66 |%{glom}"|`. if|
|000011a0| 20 28 22 24 54 45 4d 50 | 56 41 52 22 20 3d 3d 20 | ("$TEMP|VAR" == |
|000011b0| 22 22 29 20 74 68 65 6e | 0a 20 20 20 20 20 20 20 |"") then|. |
|000011c0| 20 65 63 68 6f 20 67 6c | 6f 6d 3a 20 63 61 6e 5c | echo gl|om: can\|
|000011d0| 27 74 20 61 64 64 20 74 | 6f 20 61 20 6e 6f 6e 2d |'t add t|o a non-|
|000011e0| 67 6c 6f 6d 6d 65 64 20 | 6d 65 73 73 61 67 65 0a |glommed |message.|
|000011f0| 20 20 20 20 20 20 20 20 | 65 78 69 74 28 31 29 0a | |exit(1).|
|00001200| 20 20 20 20 65 6e 64 69 | 66 0a 65 6e 64 69 66 0a | endi|f.endif.|
|00001210| 0a 73 65 74 20 68 69 74 | 73 20 3d 20 60 70 69 63 |.set hit|s = `pic|
|00001220| 6b 20 2b 24 46 4f 4c 44 | 45 52 20 2d 6e 6f 70 75 |k +$FOLD|ER -nopu|
|00001230| 62 6c 69 63 20 2d 73 65 | 71 20 67 6c 6f 6d 20 24 |blic -se|q glom $|
|00001240| 4d 53 47 53 20 7c 26 20 | 63 61 74 60 0a 69 66 20 |MSGS |& |cat`.if |
|00001250| 28 22 24 68 69 74 73 5b | 31 5d 22 20 3d 3d 20 22 |("$hits[|1]" == "|
|00001260| 70 69 63 6b 3a 22 29 20 | 74 68 65 6e 0a 20 20 20 |pick:") |then. |
|00001270| 20 65 63 68 6f 20 67 6c | 6f 6d 3a 20 62 61 64 20 | echo gl|om: bad |
|00001280| 6d 65 73 73 61 67 65 20 | 6c 69 73 74 0a 20 20 20 |message |list. |
|00001290| 20 65 78 69 74 28 31 29 | 0a 65 6e 64 69 66 0a 0a | exit(1)|.endif..|
|000012a0| 69 66 20 28 28 24 41 44 | 44 20 21 3d 20 31 29 20 |if (($AD|D != 1) |
|000012b0| 26 26 20 28 22 24 68 69 | 74 73 22 20 3d 3d 20 22 |&& ("$hi|ts" == "|
|000012c0| 31 20 68 69 74 22 29 29 | 20 74 68 65 6e 0a 20 20 |1 hit"))| then. |
|000012d0| 20 20 65 63 68 6f 20 67 | 6c 6f 6d 3a 20 63 61 6e | echo g|lom: can|
|000012e0| 5c 27 74 20 67 6c 6f 6d | 20 77 69 74 68 20 6f 6e |\'t glom| with on|
|000012f0| 6c 79 20 6f 6e 65 20 6d | 65 73 73 61 67 65 0a 20 |ly one m|essage. |
|00001300| 20 20 20 65 78 69 74 28 | 31 29 0a 65 6e 64 69 66 | exit(|1).endif|
|00001310| 0a 0a 69 66 20 28 24 41 | 44 44 29 20 74 68 65 6e |..if ($A|DD) then|
|00001320| 0a 20 20 20 20 73 65 74 | 20 43 43 20 3d 20 28 60 |. set| CC = (`|
|00001330| 73 63 61 6e 20 2b 24 46 | 4f 4c 44 45 52 20 24 47 |scan +$F|OLDER $G|
|00001340| 4c 4f 4d 4d 53 47 20 2d | 77 69 64 74 68 20 35 31 |LOMMSG -|width 51|
|00001350| 32 20 2d 66 6f 72 6d 61 | 74 20 22 25 7b 63 63 7d |2 -forma|t "%{cc}|
|00001360| 22 60 2c 20 29 0a 20 20 | 20 20 73 65 74 20 53 55 |"`, ). | set SU|
|00001370| 42 4a 45 43 54 20 3d 20 | 60 73 63 61 6e 20 2b 24 |BJECT = |`scan +$|
|00001380| 46 4f 4c 44 45 52 20 24 | 47 4c 4f 4d 4d 53 47 20 |FOLDER $|GLOMMSG |
|00001390| 2d 66 6f 72 6d 61 74 20 | 22 25 7b 73 75 62 6a 65 |-format |"%{subje|
|000013a0| 63 74 7d 22 60 0a 65 6c | 73 65 0a 20 20 20 20 23 |ct}"`.el|se. #|
|000013b0| 20 73 75 62 6a 65 63 74 | 20 69 73 20 65 6e 74 65 | subject| is ente|
|000013c0| 72 65 64 20 6f 6e 20 61 | 6e 20 6f 72 69 67 69 6e |red on a|n origin|
|000013d0| 61 6c 20 67 6c 6f 6d 2c | 20 62 75 74 20 6e 6f 74 |al glom,| but not|
|000013e0| 20 77 68 65 6e 0a 20 20 | 20 20 23 20 73 6f 6d 65 | when. | # some|
|000013f0| 6f 6e 65 20 69 73 20 75 | 73 69 6e 67 20 67 6c 6f |one is u|sing glo|
|00001400| 6d 20 2d 61 5b 64 64 5d | 0a 20 20 20 20 65 63 68 |m -a[dd]|. ech|
|00001410| 6f 20 45 6e 74 65 72 20 | 6f 76 65 72 61 6c 6c 20 |o Enter |overall |
|00001420| 73 75 62 6a 65 63 74 2c | 20 66 69 6e 69 73 68 20 |subject,| finish |
|00001430| 77 69 74 68 20 5e 44 20 | 6f 6e 20 6c 69 6e 65 20 |with ^D |on line |
|00001440| 62 79 20 69 74 73 65 6c | 66 3a 0a 20 20 20 20 73 |by itsel|f:. s|
|00001450| 65 74 20 53 55 42 4a 45 | 43 54 20 3d 20 60 63 61 |et SUBJE|CT = `ca|
|00001460| 74 60 0a 20 20 20 20 65 | 63 68 6f 20 77 61 69 74 |t`. e|cho wait|
|00001470| 2e 2e 0a 65 6e 64 69 66 | 0a 0a 23 20 66 72 6f 6d |...endif|..# from|
|00001480| 20 65 61 63 68 20 6d 65 | 73 73 61 67 65 2c 20 74 | each me|ssage, t|
|00001490| 68 65 20 7b 63 63 7d 20 | 61 6e 64 20 7b 66 72 6f |he {cc} |and {fro|
|000014a0| 6d 7d 20 66 69 65 6c 64 | 73 20 61 72 65 20 70 75 |m} field|s are pu|
|000014b0| 6c 6c 65 64 0a 23 20 6f | 75 74 20 61 6e 64 20 73 |lled.# o|ut and s|
|000014c0| 74 75 63 6b 20 74 6f 67 | 65 74 68 65 72 2c 20 73 |tuck tog|ether, s|
|000014d0| 65 70 61 72 61 74 65 64 | 20 62 79 20 63 6f 6d 6d |eparated| by comm|
|000014e0| 61 73 0a 66 6f 72 65 61 | 63 68 20 6d 73 67 28 24 |as.forea|ch msg($|
|000014f0| 4d 53 47 53 29 0a 20 20 | 20 20 23 20 43 20 61 6e |MSGS). | # C an|
|00001500| 64 20 46 20 61 72 65 20 | 75 73 65 64 20 73 6f 20 |d F are |used so |
|00001510| 74 68 61 74 20 65 78 74 | 72 61 20 63 6f 6d 6d 61 |that ext|ra comma|
|00001520| 73 20 61 72 65 20 6e 6f | 74 20 70 72 65 73 65 6e |s are no|t presen|
|00001530| 74 0a 20 20 20 20 23 20 | 74 68 69 73 20 69 73 20 |t. # |this is |
|00001540| 6e 6f 74 20 6e 65 63 65 | 73 73 61 72 79 2c 20 69 |not nece|ssary, i|
|00001550| 74 20 6a 75 73 74 20 6c | 6f 6f 6b 73 20 6e 69 63 |t just l|ooks nic|
|00001560| 65 72 0a 20 20 20 20 73 | 65 74 20 43 20 3d 20 60 |er. s|et C = `|
|00001570| 73 63 61 6e 20 2b 24 46 | 4f 4c 44 45 52 20 24 6d |scan +$F|OLDER $m|
|00001580| 73 67 20 2d 66 6f 72 6d | 61 74 20 22 25 7b 63 63 |sg -form|at "%{cc|
|00001590| 7d 22 60 0a 20 20 20 20 | 73 65 74 20 46 20 3d 20 |}"`. |set F = |
|000015a0| 60 73 63 61 6e 20 2b 24 | 46 4f 4c 44 45 52 20 24 |`scan +$|FOLDER $|
|000015b0| 6d 73 67 20 2d 66 6f 72 | 6d 61 74 20 22 25 7b 66 |msg -for|mat "%{f|
|000015c0| 72 6f 6d 7d 22 60 0a 20 | 20 20 20 69 66 20 28 22 |rom}"`. | if ("|
|000015d0| 24 43 22 20 21 3d 20 22 | 22 29 20 74 68 65 6e 0a |$C" != "|") then.|
|000015e0| 20 20 20 20 20 20 20 20 | 69 66 20 28 22 24 46 22 | |if ("$F"|
|000015f0| 20 21 3d 20 22 22 29 20 | 74 68 65 6e 0a 20 20 20 | != "") |then. |
|00001600| 20 20 20 20 20 20 20 20 | 20 73 65 74 20 43 43 20 | | set CC |
|00001610| 3d 20 28 24 7b 43 43 7d | 24 7b 43 7d 2c 20 24 7b |= (${CC}|${C}, ${|
|00001620| 46 7d 29 0a 20 20 20 20 | 20 20 20 20 65 6e 64 69 |F}). | endi|
|00001630| 66 0a 20 20 20 20 65 6c | 73 65 0a 20 20 20 20 20 |f. el|se. |
|00001640| 20 20 20 69 66 20 28 22 | 24 46 22 20 21 3d 20 22 | if ("|$F" != "|
|00001650| 22 29 20 74 68 65 6e 0a | 20 20 20 20 20 20 20 20 |") then.| |
|00001660| 20 20 20 20 73 65 74 20 | 43 43 20 3d 20 22 24 7b | set |CC = "${|
|00001670| 43 43 7d 24 7b 46 7d 22 | 20 0a 20 20 20 20 20 20 |CC}${F}"| . |
|00001680| 20 20 65 6e 64 69 66 0a | 20 20 20 20 65 6e 64 69 | endif.| endi|
|00001690| 66 0a 20 20 20 20 69 66 | 20 28 24 6d 73 67 20 21 |f. if| ($msg !|
|000016a0| 3d 20 24 4d 53 47 53 5b | 24 23 4d 53 47 53 5d 29 |= $MSGS[|$#MSGS])|
|000016b0| 20 73 65 74 20 43 43 20 | 3d 20 22 24 7b 43 43 7d | set CC |= "${CC}|
|000016c0| 2c 20 22 0a 65 6e 64 0a | 0a 23 20 54 68 65 20 6d |, ".end.|.# The m|
|000016d0| 65 73 73 61 67 65 20 69 | 73 20 63 72 65 61 74 65 |essage i|s create|
|000016e0| 64 20 69 6e 20 27 24 54 | 4d 50 46 49 4c 45 27 2c |d in '$T|MPFILE',|
|000016f0| 20 74 68 65 6e 20 63 6f | 70 69 65 64 20 74 6f 20 | then co|pied to |
|00001700| 74 68 65 0a 23 20 6c 6f | 77 65 73 74 20 6e 75 6d |the.# lo|west num|
|00001710| 62 65 72 65 64 20 6d 65 | 73 73 61 67 65 20 66 72 |bered me|ssage fr|
|00001720| 6f 6d 20 6d 65 73 73 61 | 67 65 2d 6c 69 73 74 2e |om messa|ge-list.|
|00001730| 20 4f 52 2c 20 69 6e 20 | 74 68 65 20 63 61 73 65 | OR, in |the case|
|00001740| 0a 23 20 6f 66 20 74 68 | 65 20 2d 61 5b 64 64 5d |.# of th|e -a[dd]|
|00001750| 20 6f 70 74 69 6f 6e 2c | 20 74 68 65 20 6d 65 73 | option,| the mes|
|00001760| 73 61 67 65 20 69 73 20 | 70 75 74 20 69 6e 74 6f |sage is |put into|
|00001770| 0a 23 20 67 6c 6f 6d 6d | 65 64 2d 6d 65 73 73 61 |.# glomm|ed-messa|
|00001780| 67 65 0a 65 63 68 6f 20 | 22 3e 46 72 6f 6d 20 24 |ge.echo |">From $|
|00001790| 46 52 4f 4d 20 20 24 44 | 41 54 45 22 20 20 20 20 |FROM $D|ATE" |
|000017a0| 20 20 20 20 20 20 20 20 | 3e 3e 20 24 54 4d 50 46 | |>> $TMPF|
|000017b0| 49 4c 45 0a 65 63 68 6f | 20 22 44 61 74 65 3a 20 |ILE.echo| "Date: |
|000017c0| 24 44 41 54 45 22 20 20 | 20 20 20 20 20 20 20 20 |$DATE" | |
|000017d0| 20 20 20 20 20 20 20 20 | 20 20 3e 3e 20 24 54 4d | | >> $TM|
|000017e0| 50 46 49 4c 45 0a 65 63 | 68 6f 20 22 46 72 6f 6d |PFILE.ec|ho "From|
|000017f0| 3a 20 24 46 52 4f 4d 22 | 20 20 20 20 20 20 20 20 |: $FROM"| |
|00001800| 20 20 20 20 20 20 20 20 | 20 20 20 20 3e 3e 20 24 | | >> $|
|00001810| 54 4d 50 46 49 4c 45 0a | 65 63 68 6f 20 22 43 63 |TMPFILE.|echo "Cc|
|00001820| 3a 20 24 43 43 22 20 20 | 20 20 20 20 20 20 20 20 |: $CC" | |
|00001830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3e 3e | | >>|
|00001840| 20 24 54 4d 50 46 49 4c | 45 0a 65 63 68 6f 20 22 | $TMPFIL|E.echo "|
|00001850| 54 6f 3a 20 20 20 24 54 | 4f 22 20 20 20 20 20 20 |To: $T|O" |
|00001860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001870| 3e 3e 20 24 54 4d 50 46 | 49 4c 45 0a 65 63 68 6f |>> $TMPF|ILE.echo|
|00001880| 20 22 53 75 62 6a 65 63 | 74 3a 20 24 53 55 42 4a | "Subjec|t: $SUBJ|
|00001890| 45 43 54 22 20 20 20 20 | 20 20 20 20 20 20 20 20 |ECT" | |
|000018a0| 20 20 3e 3e 20 24 54 4d | 50 46 49 4c 45 0a 65 63 | >> $TM|PFILE.ec|
|000018b0| 68 6f 20 27 27 20 20 20 | 20 20 20 20 20 20 20 20 |ho '' | |
|000018c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000018d0| 20 20 3e 3e 20 24 54 4d | 50 46 49 4c 45 0a 0a 23 | >> $TM|PFILE..#|
|000018e0| 20 69 66 20 61 64 64 69 | 6e 67 20 74 6f 20 61 20 | if addi|ng to a |
|000018f0| 67 6c 6f 6d 6d 65 64 2d | 6d 65 73 73 61 67 65 2c |glommed-|message,|
|00001900| 20 67 72 61 62 20 74 68 | 65 20 62 6f 64 79 20 66 | grab th|e body f|
|00001910| 72 6f 6d 0a 23 20 67 6c | 6f 6d 6d 65 64 2d 6d 65 |rom.# gl|ommed-me|
|00001920| 73 73 61 67 65 0a 69 66 | 20 28 24 41 44 44 29 20 |ssage.if| ($ADD) |
|00001930| 74 68 65 6e 0a 20 20 20 | 20 73 68 6f 77 20 2b 24 |then. | show +$|
|00001940| 46 4f 4c 44 45 52 20 24 | 47 4c 4f 4d 4d 53 47 20 |FOLDER $|GLOMMSG |
|00001950| 2d 66 6f 72 6d 20 24 42 | 4f 44 59 46 4f 52 4d 20 |-form $B|ODYFORM |
|00001960| 20 20 3e 3e 20 24 54 4d | 50 46 49 4c 45 0a 20 20 | >> $TM|PFILE. |
|00001970| 20 20 65 63 68 6f 20 5c | 3e 20 20 20 20 20 20 20 | echo \|> |
|00001980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001990| 20 20 20 20 20 20 20 20 | 20 20 20 3e 3e 20 24 54 | | >> $T|
|000019a0| 4d 50 46 49 4c 45 0a 20 | 20 20 20 65 63 68 6f 20 |MPFILE. | echo |
|000019b0| 5c 3e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |\> | |
|000019c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000019d0| 20 20 20 20 3e 3e 20 24 | 54 4d 50 46 49 4c 45 0a | >> $|TMPFILE.|
|000019e0| 20 20 20 20 65 63 68 6f | 20 5c 3e 20 20 20 20 20 | echo| \> |
|000019f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3e 3e 20 | | >> |
|00001a10| 24 54 4d 50 46 49 4c 45 | 0a 65 6e 64 69 66 0a 0a |$TMPFILE|.endif..|
|00001a20| 23 20 70 75 74 20 61 20 | 22 3e 22 20 69 6e 20 66 |# put a |">" in f|
|00001a30| 72 6f 6e 74 20 6f 66 20 | 65 61 63 68 20 6c 69 6e |ront of |each lin|
|00001a40| 65 0a 73 68 6f 77 20 2b | 24 46 4f 4c 44 45 52 20 |e.show +|$FOLDER |
|00001a50| 24 4d 53 47 53 20 7c 20 | 61 77 6b 20 27 7b 70 72 |$MSGS | |awk '{pr|
|00001a60| 69 6e 74 20 22 3e 20 22 | 20 24 30 7d 27 20 20 20 |int "> "| $0}' |
|00001a70| 3e 3e 20 24 54 4d 50 46 | 49 4c 45 0a 72 6d 6d 20 |>> $TMPF|ILE.rmm |
|00001a80| 2b 24 46 4f 4c 44 45 52 | 20 24 4d 53 47 53 0a 0a |+$FOLDER| $MSGS..|
|00001a90| 69 66 20 28 24 41 44 44 | 29 20 74 68 65 6e 0a 20 |if ($ADD|) then. |
|00001aa0| 20 20 20 63 70 20 24 54 | 4d 50 46 49 4c 45 20 24 | cp $T|MPFILE $|
|00001ab0| 4d 48 50 41 54 48 2f 24 | 47 4c 4f 4d 4d 53 47 0a |MHPATH/$|GLOMMSG.|
|00001ac0| 20 20 20 20 61 6e 6e 6f | 20 2b 24 46 4f 4c 44 45 | anno| +$FOLDE|
|00001ad0| 52 20 24 47 4c 4f 4d 4d | 53 47 20 2d 63 6f 6d 70 |R $GLOMM|SG -comp|
|00001ae0| 6f 6e 65 6e 74 20 67 6c | 6f 6d 20 2d 74 65 78 74 |onent gl|om -text|
|00001af0| 20 22 4d 75 6c 74 69 70 | 6c 65 20 6d 65 73 73 61 | "Multip|le messa|
|00001b00| 67 65 73 20 66 6f 6c 6c | 6f 77 22 0a 09 69 66 20 |ges foll|ow"..if |
|00001b10| 28 22 60 67 72 65 70 20 | 5e 24 46 4f 4c 44 45 52 |("`grep |^$FOLDER|
|00001b20| 20 2f 65 74 63 2f 67 72 | 6f 75 70 60 22 20 21 3d | /etc/gr|oup`" !=|
|00001b30| 20 22 22 29 20 63 68 67 | 72 70 20 24 46 4f 4c 44 | "") chg|rp $FOLD|
|00001b40| 45 52 20 24 4d 48 50 41 | 54 48 2f 24 47 4c 4f 4d |ER $MHPA|TH/$GLOM|
|00001b50| 4d 53 47 0a 65 6c 73 65 | 0a 20 20 20 20 63 70 20 |MSG.else|. cp |
|00001b60| 24 54 4d 50 46 49 4c 45 | 20 24 4d 48 50 41 54 48 |$TMPFILE| $MHPATH|
|00001b70| 2f 24 4d 53 47 53 5b 31 | 5d 0a 20 20 20 20 61 6e |/$MSGS[1|]. an|
|00001b80| 6e 6f 20 2b 24 46 4f 4c | 44 45 52 20 24 4d 53 47 |no +$FOL|DER $MSG|
|00001b90| 53 5b 31 5d 20 2d 63 6f | 6d 70 6f 6e 65 6e 74 20 |S[1] -co|mponent |
|00001ba0| 67 6c 6f 6d 20 2d 74 65 | 78 74 20 22 4d 75 6c 74 |glom -te|xt "Mult|
|00001bb0| 69 70 6c 65 20 6d 65 73 | 73 61 67 65 73 20 66 6f |iple mes|sages fo|
|00001bc0| 6c 6c 6f 77 22 0a 09 69 | 66 20 28 22 60 67 72 65 |llow"..i|f ("`gre|
|00001bd0| 70 20 5e 24 46 4f 4c 44 | 45 52 20 2f 65 74 63 2f |p ^$FOLD|ER /etc/|
|00001be0| 67 72 6f 75 70 60 22 20 | 21 3d 20 22 22 29 20 63 |group`" |!= "") c|
|00001bf0| 68 67 72 70 20 24 46 4f | 4c 44 45 52 20 24 4d 48 |hgrp $FO|LDER $MH|
|00001c00| 50 41 54 48 2f 24 4d 53 | 47 53 5b 31 5d 0a 65 6e |PATH/$MS|GS[1].en|
|00001c10| 64 69 66 0a 0a 72 6d 20 | 2d 66 20 24 54 4d 50 46 |dif..rm |-f $TMPF|
|00001c20| 49 4c 45 0a 0a 65 78 69 | 74 28 30 29 0a 0a 55 53 |ILE..exi|t(0)..US|
|00001c30| 41 47 45 3a 0a 09 65 63 | 68 6f 20 27 75 73 61 67 |AGE:..ec|ho 'usag|
|00001c40| 65 3a 27 0a 09 65 63 68 | 6f 20 27 20 20 20 20 67 |e:'..ech|o ' g|
|00001c50| 6c 6f 6d 20 2d 68 5b 65 | 6c 70 5d 27 0a 09 65 63 |lom -h[e|lp]'..ec|
|00001c60| 68 6f 20 27 20 20 20 20 | 67 6c 6f 6d 20 5b 2b 66 |ho ' |glom [+f|
|00001c70| 6f 6c 64 65 72 5d 20 5b | 2d 61 5b 64 64 5d 5d 20 |older] [|-a[dd]] |
|00001c80| 6d 65 73 73 61 67 65 2d | 6c 69 73 74 27 0a 09 65 |message-|list'..e|
|00001c90| 78 69 74 28 31 29 0a 40 | 0a 0a 0a 31 2e 34 0a 6c |xit(1).@|...1.4.l|
|00001ca0| 6f 67 0a 40 73 79 6e 63 | 20 77 69 74 68 20 6f 75 |og.@sync| with ou|
|00001cb0| 72 73 0a 6d 69 6e 6f 72 | 20 73 70 61 63 69 6e 67 |rs.minor| spacing|
|00001cc0| 20 63 68 61 6e 67 65 0a | 40 0a 74 65 78 74 0a 40 | change.|@.text.@|
|00001cd0| 64 31 31 31 20 31 0a 61 | 31 31 31 20 31 0a 20 20 |d111 1.a|111 1. |
|00001ce0| 20 20 73 65 74 20 43 43 | 20 3d 20 28 60 73 63 61 | set CC| = (`sca|
|00001cf0| 6e 20 2b 24 46 4f 4c 44 | 45 52 20 24 47 4c 4f 4d |n +$FOLD|ER $GLOM|
|00001d00| 4d 53 47 20 2d 66 6f 72 | 6d 61 74 20 22 25 7b 63 |MSG -for|mat "%{c|
|00001d10| 63 7d 22 60 2c 20 29 0a | 40 0a 0a 0a 31 2e 33 0a |c}"`, ).|@...1.3.|
|00001d20| 6c 6f 67 0a 40 66 69 78 | 20 73 75 62 6a 65 63 74 |log.@fix| subject|
|00001d30| 20 77 69 74 68 20 2d 61 | 20 6f 70 74 69 6f 6e 0a | with -a| option.|
|00001d40| 40 0a 74 65 78 74 0a 40 | 64 31 39 20 31 0a 61 31 |@.text.@|d19 1.a1|
|00001d50| 39 20 31 0a 09 20 20 20 | 20 73 65 74 20 46 4f 4c |9 1.. | set FOL|
|00001d60| 44 45 52 20 3d 20 60 65 | 63 68 6f 20 24 73 74 72 |DER = `e|cho $str|
|00001d70| 69 6e 67 20 7c 20 73 65 | 64 20 2d 65 20 22 73 2f |ing | se|d -e "s/|
|00001d80| 5e 2b 2f 2f 22 60 0a 40 | 0a 0a 0a 31 2e 32 0a 6c |^+//"`.@|...1.2.l|
|00001d90| 6f 67 0a 40 66 69 78 20 | 70 72 6f 62 6c 65 6d 20 |og.@fix |problem |
|00001da0| 77 69 74 68 20 68 61 76 | 69 6e 67 20 61 20 2b 20 |with hav|ing a + |
|00001db0| 61 73 20 70 61 72 74 20 | 6f 66 20 74 68 65 20 66 |as part |of the f|
|00001dc0| 6f 6c 64 65 72 20 6e 61 | 6d 65 0a 40 0a 74 65 78 |older na|me.@.tex|
|00001dd0| 74 0a 40 64 31 31 32 20 | 31 0a 40 0a 0a 0a 31 2e |t.@d112 |1.@...1.|
|00001de0| 31 0a 6c 6f 67 0a 40 49 | 6e 69 74 69 61 6c 20 72 |1.log.@I|nitial r|
|00001df0| 65 76 69 73 69 6f 6e 0a | 40 0a 74 65 78 74 0a 40 |evision.|@.text.@|
|00001e00| 64 31 39 20 31 0a 61 31 | 39 20 31 0a 09 20 20 20 |d19 1.a1|9 1.. |
|00001e10| 20 73 65 74 20 46 4f 4c | 44 45 52 20 3d 20 60 65 | set FOL|DER = `e|
|00001e20| 63 68 6f 20 24 73 74 72 | 69 6e 67 20 7c 20 61 77 |cho $str|ing | aw|
|00001e30| 6b 20 2d 46 2b 20 27 7b | 20 70 72 69 6e 74 20 24 |k -F+ '{| print $|
|00001e40| 32 20 7d 27 60 0a 40 0a | 00 00 00 00 00 00 00 00 |2 }'`.@.|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002000| 71 75 65 75 65 6d 68 2f | 62 69 6e 2f 52 43 53 2f |queuemh/|bin/RCS/|
|00002010| 6e 6f 74 61 63 6b 2e 6d | 68 2c 76 00 00 00 00 00 |notack.m|h,v.....|
|00002020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002060| 00 00 00 00 20 20 20 34 | 30 30 20 00 20 32 36 34 |.... 4|00 . 264|
|00002070| 33 31 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |31 . |12 . |
|00002080| 20 20 20 31 35 30 35 20 | 20 34 36 32 36 32 37 30 | 1505 | 4626270|
|00002090| 33 31 32 20 20 31 31 30 | 36 30 00 20 00 00 00 00 |312 110|60. ....|
|000020a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002200| 68 65 61 64 20 20 20 20 | 20 31 2e 32 3b 0a 62 72 |head | 1.2;.br|
|00002210| 61 6e 63 68 20 20 20 3b | 0a 61 63 63 65 73 73 20 |anch ;|.access |
|00002220| 20 20 3b 0a 73 79 6d 62 | 6f 6c 73 20 20 3b 0a 6c | ;.symb|ols ;.l|
|00002230| 6f 63 6b 73 20 20 20 20 | 3b 20 73 74 72 69 63 74 |ocks |; strict|
|00002240| 3b 0a 63 6f 6d 6d 65 6e | 74 20 20 40 40 3b 0a 0a |;.commen|t @@;..|
|00002250| 0a 31 2e 32 0a 64 61 74 | 65 20 20 20 20 20 39 30 |.1.2.dat|e 90|
|00002260| 2e 30 35 2e 32 32 2e 31 | 31 2e 30 32 2e 35 38 3b |.05.22.1|1.02.58;|
|00002270| 20 20 61 75 74 68 6f 72 | 20 64 79 6b 65 72 3b 20 | author| dyker; |
|00002280| 20 73 74 61 74 65 20 45 | 78 70 3b 0a 62 72 61 6e | state E|xp;.bran|
|00002290| 63 68 65 73 20 3b 0a 6e | 65 78 74 20 20 20 20 20 |ches ;.n|ext |
|000022a0| 31 2e 31 3b 0a 0a 31 2e | 31 0a 64 61 74 65 20 20 |1.1;..1.|1.date |
|000022b0| 20 20 20 39 30 2e 30 35 | 2e 32 31 2e 31 33 2e 34 | 90.05|.21.13.4|
|000022c0| 35 2e 31 30 3b 20 20 61 | 75 74 68 6f 72 20 64 79 |5.10; a|uthor dy|
|000022d0| 6b 65 72 3b 20 20 73 74 | 61 74 65 20 45 78 70 3b |ker; st|ate Exp;|
|000022e0| 0a 62 72 61 6e 63 68 65 | 73 20 3b 0a 6e 65 78 74 |.branche|s ;.next|
|000022f0| 20 20 20 20 20 3b 0a 0a | 0a 64 65 73 63 0a 40 73 | ;..|.desc.@s|
|00002300| 63 61 6e 20 74 68 6f 73 | 65 20 6d 65 73 73 61 67 |can thos|e messag|
|00002310| 65 73 20 6e 6f 74 20 70 | 72 65 76 69 6f 75 73 6c |es not p|reviousl|
|00002320| 79 20 61 63 6b 6e 6f 77 | 6c 65 64 67 65 64 0a 40 |y acknow|ledged.@|
|00002330| 0a 0a 0a 31 2e 32 0a 6c | 6f 67 0a 40 66 69 78 20 |...1.2.l|og.@fix |
|00002340| 70 72 6f 62 6c 65 6d 20 | 77 69 74 68 20 68 61 76 |problem |with hav|
|00002350| 69 6e 67 20 61 20 2b 20 | 61 73 20 70 61 72 74 20 |ing a + |as part |
|00002360| 6f 66 20 74 68 65 20 66 | 6f 6c 64 65 72 20 6e 61 |of the f|older na|
|00002370| 6d 65 0a 40 0a 74 65 78 | 74 0a 40 23 21 2f 62 69 |me.@.tex|t.@#!/bi|
|00002380| 6e 2f 63 73 68 20 2d 66 | 62 0a 0a 69 66 20 28 24 |n/csh -f|b..if ($|
|00002390| 23 61 72 67 76 20 21 3d | 20 30 29 20 74 68 65 6e |#argv !=| 0) then|
|000023a0| 0a 20 20 20 20 73 77 69 | 74 63 68 20 28 24 61 72 |. swi|tch ($ar|
|000023b0| 67 76 5b 31 5d 29 0a 09 | 63 61 73 65 20 22 2b 2a |gv[1])..|case "+*|
|000023c0| 22 3a 0a 09 20 20 20 20 | 73 65 74 20 46 4f 4c 44 |":.. |set FOLD|
|000023d0| 45 52 20 3d 20 60 65 63 | 68 6f 20 24 61 72 67 76 |ER = `ec|ho $argv|
|000023e0| 5b 31 5d 20 7c 20 73 65 | 64 20 2d 65 20 22 73 2f |[1] | se|d -e "s/|
|000023f0| 5e 2b 2f 2f 22 60 0a 09 | 20 20 20 20 62 72 65 61 |^+//"`..| brea|
|00002400| 6b 73 77 0a 09 64 65 66 | 61 75 6c 74 3a 0a 09 20 |ksw..def|ault:.. |
|00002410| 20 20 20 65 63 68 6f 20 | 22 75 73 61 67 65 3a 20 | echo |"usage: |
|00002420| 6e 6f 74 61 63 6b 20 5b | 2b 66 6f 6c 64 65 72 5d |notack [|+folder]|
|00002430| 22 0a 09 20 20 20 20 65 | 78 69 74 20 31 0a 20 20 |".. e|xit 1. |
|00002440| 20 20 65 6e 64 73 77 0a | 65 6e 64 69 66 0a 0a 69 | endsw.|endif..i|
|00002450| 66 20 28 24 3f 46 4f 4c | 44 45 52 20 3d 3d 20 30 |f ($?FOL|DER == 0|
|00002460| 29 20 74 68 65 6e 0a 20 | 20 20 20 73 65 74 20 46 |) then. | set F|
|00002470| 4f 4c 44 45 52 20 3d 20 | 60 66 6f 6c 64 65 72 20 |OLDER = |`folder |
|00002480| 2d 66 61 73 74 60 0a 65 | 6e 64 69 66 0a 0a 2f 75 |-fast`.e|ndif../u|
|00002490| 73 72 2f 6e 65 77 2f 6d | 68 2f 73 63 61 6e 20 2b |sr/new/m|h/scan +|
|000024a0| 24 46 4f 4c 44 45 52 20 | 60 2f 75 73 72 2f 6e 65 |$FOLDER |`/usr/ne|
|000024b0| 77 2f 6d 68 2f 70 69 63 | 6b 20 2b 24 46 4f 4c 44 |w/mh/pic|k +$FOLD|
|000024c0| 45 52 20 2d 6e 6f 74 20 | 2d 2d 55 73 65 72 41 63 |ER -not |--UserAc|
|000024d0| 6b 65 64 20 62 79 60 0a | 40 0a 0a 0a 31 2e 31 0a |ked by`.|@...1.1.|
|000024e0| 6c 6f 67 0a 40 49 6e 69 | 74 69 61 6c 20 72 65 76 |log.@Ini|tial rev|
|000024f0| 69 73 69 6f 6e 0a 40 0a | 74 65 78 74 0a 40 64 36 |ision.@.|text.@d6|
|00002500| 20 31 0a 61 36 20 31 0a | 09 20 20 20 20 73 65 74 | 1.a6 1.|. set|
|00002510| 20 46 4f 4c 44 45 52 20 | 3d 20 60 65 63 68 6f 20 | FOLDER |= `echo |
|00002520| 24 61 72 67 76 5b 31 5d | 20 7c 20 61 77 6b 20 2d |$argv[1]| | awk -|
|00002530| 46 2b 20 27 7b 20 70 72 | 69 6e 74 20 24 32 20 7d |F+ '{ pr|int $2 }|
|00002540| 27 60 0a 40 0a 47 20 2d | 77 69 64 74 68 20 35 31 |'`.@.G -|width 51|
|00002550| 32 20 2d 66 6f 72 6d 61 | 74 20 22 25 7b 63 63 7d |2 -forma|t "%{cc}|
|00002560| 22 60 2c 20 29 0a 20 20 | 20 20 73 65 74 20 53 55 |"`, ). | set SU|
|00002570| 42 4a 45 43 54 20 3d 20 | 60 73 63 61 6e 20 2b 24 |BJECT = |`scan +$|
|00002580| 46 4f 4c 44 45 52 20 24 | 47 4c 4f 4d 4d 53 47 20 |FOLDER $|GLOMMSG |
|00002590| 2d 66 6f 72 6d 61 74 20 | 22 25 7b 73 75 62 6a 65 |-format |"%{subje|
|000025a0| 63 74 7d 22 60 0a 65 6c | 73 65 0a 20 20 20 20 23 |ct}"`.el|se. #|
|000025b0| 20 73 75 62 6a 65 63 74 | 20 69 73 20 65 6e 74 65 | subject| is ente|
|000025c0| 72 65 64 20 6f 6e 20 61 | 6e 20 6f 72 69 67 69 6e |red on a|n origin|
|000025d0| 61 6c 20 67 6c 6f 6d 2c | 20 62 75 74 20 6e 6f 74 |al glom,| but not|
|000025e0| 20 77 68 65 6e 0a 20 20 | 20 20 23 20 73 6f 6d 65 | when. | # some|
|000025f0| 6f 6e 65 20 69 73 20 75 | 73 69 6e 67 20 67 6c 6f |one is u|sing glo|
|00002600| 71 75 65 75 65 6d 68 2f | 62 69 6e 2f 52 43 53 2f |queuemh/|bin/RCS/|
|00002610| 72 65 73 2e 6d 68 2c 76 | 00 00 00 00 00 00 00 00 |res.mh,v|........|
|00002620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002660| 00 00 00 00 20 20 20 34 | 30 30 20 00 20 32 36 34 |.... 4|00 . 264|
|00002670| 33 31 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |31 . |12 . |
|00002680| 20 20 20 36 36 37 36 20 | 20 34 36 35 37 32 37 34 | 6676 | 4657274|
|00002690| 34 31 31 20 20 31 30 34 | 32 30 00 20 00 00 00 00 |411 104|20. ....|
|000026a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002800| 68 65 61 64 20 20 20 20 | 20 31 2e 34 3b 0a 62 72 |head | 1.4;.br|
|00002810| 61 6e 63 68 20 20 20 3b | 0a 61 63 63 65 73 73 20 |anch ;|.access |
|00002820| 20 20 3b 0a 73 79 6d 62 | 6f 6c 73 20 20 3b 0a 6c | ;.symb|ols ;.l|
|00002830| 6f 63 6b 73 20 20 20 20 | 3b 20 73 74 72 69 63 74 |ocks |; strict|
|00002840| 3b 0a 63 6f 6d 6d 65 6e | 74 20 20 40 40 3b 0a 0a |;.commen|t @@;..|
|00002850| 0a 31 2e 34 0a 64 61 74 | 65 20 20 20 20 20 39 30 |.1.4.dat|e 90|
|00002860| 2e 30 38 2e 30 36 2e 30 | 38 2e 30 34 2e 34 37 3b |.08.06.0|8.04.47;|
|00002870| 20 20 61 75 74 68 6f 72 | 20 64 79 6b 65 72 3b 20 | author| dyker; |
|00002880| 20 73 74 61 74 65 20 45 | 78 70 3b 0a 62 72 61 6e | state E|xp;.bran|
|00002890| 63 68 65 73 20 3b 0a 6e | 65 78 74 20 20 20 20 20 |ches ;.n|ext |
|000028a0| 31 2e 33 3b 0a 0a 31 2e | 33 0a 64 61 74 65 20 20 |1.3;..1.|3.date |
|000028b0| 20 20 20 39 30 2e 30 37 | 2e 30 32 2e 31 38 2e 32 | 90.07|.02.18.2|
|000028c0| 31 2e 33 32 3b 20 20 61 | 75 74 68 6f 72 20 64 79 |1.32; a|uthor dy|
|000028d0| 6b 65 72 3b 20 20 73 74 | 61 74 65 20 45 78 70 3b |ker; st|ate Exp;|
|000028e0| 0a 62 72 61 6e 63 68 65 | 73 20 3b 0a 6e 65 78 74 |.branche|s ;.next|
|000028f0| 20 20 20 20 20 31 2e 32 | 3b 0a 0a 31 2e 32 0a 64 | 1.2|;..1.2.d|
|00002900| 61 74 65 20 20 20 20 20 | 39 30 2e 30 35 2e 32 32 |ate |90.05.22|
|00002910| 2e 31 31 2e 30 33 2e 33 | 32 3b 20 20 61 75 74 68 |.11.03.3|2; auth|
|00002920| 6f 72 20 64 79 6b 65 72 | 3b 20 20 73 74 61 74 65 |or dyker|; state|
|00002930| 20 45 78 70 3b 0a 62 72 | 61 6e 63 68 65 73 20 3b | Exp;.br|anches ;|
|00002940| 0a 6e 65 78 74 20 20 20 | 20 20 31 2e 31 3b 0a 0a |.next | 1.1;..|
|00002950| 31 2e 31 0a 64 61 74 65 | 20 20 20 20 20 39 30 2e |1.1.date| 90.|
|00002960| 30 35 2e 32 31 2e 31 33 | 2e 34 37 2e 32 39 3b 20 |05.21.13|.47.29; |
|00002970| 20 61 75 74 68 6f 72 20 | 64 79 6b 65 72 3b 20 20 | author |dyker; |
|00002980| 73 74 61 74 65 20 45 78 | 70 3b 0a 62 72 61 6e 63 |state Ex|p;.branc|
|00002990| 68 65 73 20 3b 0a 6e 65 | 78 74 20 20 20 20 20 3b |hes ;.ne|xt ;|
|000029a0| 0a 0a 0a 64 65 73 63 0a | 40 52 65 73 6f 6c 76 65 |...desc.|@Resolve|
|000029b0| 20 61 20 71 75 65 75 65 | 20 6d 65 73 73 61 67 65 | a queue| message|
|000029c0| 0a 40 0a 0a 0a 31 2e 34 | 0a 6c 6f 67 0a 40 66 69 |.@...1.4|.log.@fi|
|000029d0| 78 20 74 6d 68 20 66 69 | 6c 65 20 65 72 72 6f 72 |x tmh fi|le error|
|000029e0| 0a 40 0a 74 65 78 74 0a | 40 23 21 2f 62 69 6e 2f |.@.text.|@#!/bin/|
|000029f0| 63 73 68 20 2d 66 62 0a | 0a 75 6d 61 73 6b 20 30 |csh -fb.|.umask 0|
|00002a00| 30 37 0a 0a 23 20 62 65 | 67 69 6e 3a 20 73 65 74 |07..# be|gin: set|
|00002a10| 20 71 75 65 75 65 20 66 | 6f 6c 64 65 72 28 46 4f | queue f|older(FO|
|00002a20| 4c 44 45 52 29 20 61 6e | 64 20 73 65 74 20 63 75 |LDER) an|d set cu|
|00002a30| 72 72 65 6e 74 20 6d 65 | 73 73 61 67 65 28 6d 65 |rrent me|ssage(me|
|00002a40| 73 67 29 0a 23 0a 73 65 | 74 20 6d 65 73 67 20 3d |sg).#.se|t mesg =|
|00002a50| 20 63 75 72 0a 0a 66 6f | 72 65 61 63 68 20 73 74 | cur..fo|reach st|
|00002a60| 72 69 6e 67 20 28 24 61 | 72 67 76 29 0a 20 20 20 |ring ($a|rgv). |
|00002a70| 20 73 77 69 74 63 68 20 | 28 24 73 74 72 69 6e 67 | switch |($string|
|00002a80| 29 0a 20 20 20 20 20 20 | 20 20 63 61 73 65 20 22 |). | case "|
|00002a90| 2b 2a 22 3a 0a 20 20 20 | 20 20 20 20 20 20 20 20 |+*":. | |
|00002aa0| 20 73 65 74 20 46 4f 4c | 44 45 52 20 3d 20 60 65 | set FOL|DER = `e|
|00002ab0| 63 68 6f 20 24 73 74 72 | 69 6e 67 20 7c 20 73 65 |cho $str|ing | se|
|00002ac0| 64 20 2d 65 20 73 2f 5e | 2b 2f 2f 60 20 3b 20 62 |d -e s/^|+//` ; b|
|00002ad0| 72 65 61 6b 73 77 0a 20 | 20 20 20 20 20 20 20 63 |reaksw. | c|
|00002ae0| 61 73 65 20 22 5b 30 2d | 39 5d 2a 22 3a 0a 20 20 |ase "[0-|9]*":. |
|00002af0| 20 20 20 20 20 20 20 20 | 20 20 73 65 74 20 6d 65 | | set me|
|00002b00| 73 67 20 3d 20 24 73 74 | 72 69 6e 67 20 3b 20 62 |sg = $st|ring ; b|
|00002b10| 72 65 61 6b 73 77 0a 20 | 20 20 20 20 20 20 20 64 |reaksw. | d|
|00002b20| 65 66 61 75 6c 74 3a 0a | 20 20 20 20 20 20 20 20 |efault:.| |
|00002b30| 20 20 20 20 65 63 68 6f | 20 22 55 73 61 67 65 3a | echo| "Usage:|
|00002b40| 20 72 65 73 20 5b 6d 65 | 73 67 5d 20 5b 2b 66 6f | res [me|sg] [+fo|
|00002b50| 6c 64 65 72 5d 22 20 3b | 20 65 78 69 74 20 31 0a |lder]" ;| exit 1.|
|00002b60| 20 20 20 20 65 6e 64 73 | 77 0a 65 6e 64 0a 0a 69 | ends|w.end..i|
|00002b70| 66 20 28 21 20 24 3f 46 | 4f 4c 44 45 52 29 20 74 |f (! $?F|OLDER) t|
|00002b80| 68 65 6e 0a 20 20 20 20 | 73 65 74 20 46 4f 4c 44 |hen. |set FOLD|
|00002b90| 45 52 20 3d 20 60 66 6f | 6c 64 65 72 20 2d 66 61 |ER = `fo|lder -fa|
|00002ba0| 73 74 60 0a 65 6e 64 69 | 66 0a 23 0a 23 20 65 6e |st`.endi|f.#.# en|
|00002bb0| 64 3a 20 73 65 74 20 71 | 75 65 75 65 20 66 6f 6c |d: set q|ueue fol|
|00002bc0| 64 65 72 28 46 4f 4c 44 | 45 52 29 20 61 6e 64 20 |der(FOLD|ER) and |
|00002bd0| 73 65 74 20 63 75 72 72 | 65 6e 74 20 6d 65 73 73 |set curr|ent mess|
|00002be0| 61 67 65 28 6d 65 73 67 | 29 0a 0a 0a 23 20 62 65 |age(mesg|)...# be|
|00002bf0| 67 69 6e 3a 20 63 68 65 | 63 6b 20 71 75 65 75 65 |gin: che|ck queue|
|00002c00| 20 6f 77 6e 65 72 2c 20 | 74 68 65 6e 20 73 65 74 | owner, |then set|
|00002c10| 20 66 6f 72 6d 20 61 6e | 64 20 73 65 74 20 66 69 | form an|d set fi|
|00002c20| 6c 74 65 72 0a 23 0a 73 | 65 74 20 71 75 73 65 72 |lter.#.s|et quser|
|00002c30| 20 3d 20 24 46 4f 4c 44 | 45 52 0a 0a 69 66 20 28 | = $FOLD|ER..if (|
|00002c40| 2d 65 20 7e 24 71 75 73 | 65 72 2f 4d 61 69 6c 2f |-e ~$qus|er/Mail/|
|00002c50| 72 65 73 63 6f 6d 70 73 | 29 20 74 68 65 6e 0a 20 |rescomps|) then. |
|00002c60| 20 20 20 20 20 20 20 73 | 65 74 20 66 6f 72 6d 20 | s|et form |
|00002c70| 3d 20 22 2d 66 6f 72 6d | 20 7e 24 71 75 73 65 72 |= "-form| ~$quser|
|00002c80| 2f 4d 61 69 6c 2f 72 65 | 73 63 6f 6d 70 73 22 0a |/Mail/re|scomps".|
|00002c90| 65 6c 73 65 0a 20 20 20 | 20 20 20 20 20 73 65 74 |else. | set|
|00002ca0| 20 66 6f 72 6d 20 3d 20 | 22 2d 66 6f 72 6d 20 7e | form = |"-form ~|
|00002cb0| 24 71 75 73 65 72 2f 4d | 61 69 6c 2f 72 65 70 6c |$quser/M|ail/repl|
|00002cc0| 63 6f 6d 70 73 22 0a 65 | 6e 64 69 66 0a 0a 69 66 |comps".e|ndif..if|
|00002cd0| 20 28 2d 65 20 7e 24 71 | 75 73 65 72 2f 4d 61 69 | (-e ~$q|user/Mai|
|00002ce0| 6c 2f 72 65 73 2e 66 6f | 72 6d 61 74 29 20 74 68 |l/res.fo|rmat) th|
|00002cf0| 65 6e 0a 20 20 20 20 20 | 20 20 20 73 65 74 20 66 |en. | set f|
|00002d00| 69 6c 74 65 72 20 3d 20 | 22 2d 66 69 6c 74 65 72 |ilter = |"-filter|
|00002d10| 20 7e 24 71 75 73 65 72 | 2f 4d 61 69 6c 2f 72 65 | ~$quser|/Mail/re|
|00002d20| 73 2e 66 6f 72 6d 61 74 | 22 0a 65 6c 73 65 0a 20 |s.format|".else. |
|00002d30| 20 20 20 20 20 20 20 73 | 65 74 20 66 69 6c 74 65 | s|et filte|
|00002d40| 72 20 3d 20 22 2d 66 69 | 6c 74 65 72 20 7e 24 71 |r = "-fi|lter ~$q|
|00002d50| 75 73 65 72 2f 4d 61 69 | 6c 2f 72 65 70 6c 2e 66 |user/Mai|l/repl.f|
|00002d60| 6f 72 6d 61 74 22 0a 65 | 6e 64 69 66 0a 23 0a 23 |ormat".e|ndif.#.#|
|00002d70| 20 65 6e 64 3a 20 63 68 | 65 63 6b 20 71 75 65 75 | end: ch|eck queu|
|00002d80| 65 20 6f 77 6e 65 72 2c | 20 74 68 65 6e 20 73 65 |e owner,| then se|
|00002d90| 74 20 66 6f 72 6d 20 61 | 6e 64 20 73 65 74 20 66 |t form a|nd set f|
|00002da0| 69 6c 74 65 72 0a 0a 0a | 73 65 74 20 71 75 65 66 |ilter...|set quef|
|00002db0| 69 6c 65 20 3d 20 60 6d | 68 70 61 74 68 20 2b 24 |ile = `m|hpath +$|
|00002dc0| 46 4f 4c 44 45 52 20 24 | 6d 65 73 67 60 20 23 20 |FOLDER $|mesg` # |
|00002dd0| 6b 65 65 70 20 74 72 61 | 63 6b 20 6f 66 20 74 68 |keep tra|ck of th|
|00002de0| 65 20 66 69 6c 65 20 69 | 6e 20 74 68 65 20 71 75 |e file i|n the qu|
|00002df0| 65 75 65 0a 69 66 20 28 | 24 73 74 61 74 75 73 29 |eue.if (|$status)|
|00002e00| 20 65 78 69 74 20 31 0a | 0a 6d 76 20 24 71 75 65 | exit 1.|.mv $que|
|00002e10| 66 69 6c 65 20 2f 74 6d | 70 2f 74 6d 68 72 65 73 |file /tm|p/tmhres|
|00002e20| 2e 24 24 20 20 20 20 20 | 20 20 20 20 20 20 20 23 |.$$ | #|
|00002e30| 20 70 75 74 20 6d 65 73 | 73 61 67 65 20 6f 75 74 | put mes|sage out|
|00002e40| 20 6f 66 20 74 68 65 20 | 71 75 65 75 65 20 74 6f | of the |queue to|
|00002e50| 20 6c 6f 63 6b 20 69 74 | 0a 69 66 20 28 24 73 74 | lock it|.if ($st|
|00002e60| 61 74 75 73 29 20 65 78 | 69 74 20 31 0a 0a 0a 23 |atus) ex|it 1...#|
|00002e70| 20 62 65 67 69 6e 3a 20 | 72 65 70 6c 79 20 74 68 | begin: |reply th|
|00002e80| 65 20 6d 65 73 73 61 67 | 65 0a 23 0a 72 65 70 6c |e messag|e.#.repl|
|00002e90| 20 2d 66 69 6c 65 20 2f | 74 6d 70 2f 74 6d 68 72 | -file /|tmp/tmhr|
|00002ea0| 65 73 2e 24 24 20 24 66 | 6f 72 6d 20 24 66 69 6c |es.$$ $f|orm $fil|
|00002eb0| 74 65 72 20 2d 6e 6f 63 | 63 20 6d 65 20 2d 6e 6f |ter -noc|c me -no|
|00002ec0| 63 63 20 74 6f 0a 69 66 | 20 28 21 20 24 73 74 61 |cc to.if| (! $sta|
|00002ed0| 74 75 73 29 20 74 68 65 | 6e 0a 20 20 20 20 72 6d |tus) the|n. rm|
|00002ee0| 20 2d 66 20 2f 74 6d 70 | 2f 74 6d 68 72 65 73 2e | -f /tmp|/tmhres.|
|00002ef0| 24 24 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |$$ | |
|00002f00| 23 20 72 65 6d 6f 76 65 | 20 74 68 65 20 22 6c 6f |# remove| the "lo|
|00002f10| 63 6b 65 64 22 20 6d 65 | 73 73 61 67 65 20 69 66 |cked" me|ssage if|
|00002f20| 20 72 65 70 6c 69 65 64 | 0a 65 6c 73 65 20 20 20 | replied|.else |
|00002f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002f40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 23 | | #|
|00002f50| 20 72 65 66 69 6c 65 20 | 6d 65 73 73 61 67 65 20 | refile |message |
|00002f60| 62 61 63 6b 20 69 66 20 | 6e 6f 74 20 72 65 70 6c |back if |not repl|
|00002f70| 69 65 64 0a 20 20 20 20 | 73 65 74 20 6e 6f 63 6c |ied. |set nocl|
|00002f80| 6f 62 62 65 72 0a 20 20 | 20 20 28 63 61 74 20 2f |obber. | (cat /|
|00002f90| 74 6d 70 2f 74 6d 68 72 | 65 73 2e 24 24 20 3e 20 |tmp/tmhr|es.$$ > |
|00002fa0| 24 71 75 65 66 69 6c 65 | 29 20 3e 26 20 2f 64 65 |$quefile|) >& /de|
|00002fb0| 76 2f 6e 75 6c 6c 0a 20 | 20 20 20 69 66 20 28 24 |v/null. | if ($|
|00002fc0| 73 74 61 74 75 73 29 20 | 74 68 65 6e 0a 20 20 20 |status) |then. |
|00002fd0| 20 20 20 20 20 72 65 66 | 69 6c 65 20 2d 66 69 6c | ref|ile -fil|
|00002fe0| 65 20 2f 74 6d 70 2f 74 | 6d 68 72 65 73 2e 24 24 |e /tmp/t|mhres.$$|
|00002ff0| 20 2b 24 46 4f 4c 44 45 | 52 0a 20 20 20 20 65 6c | +$FOLDE|R. el|
|00003000| 73 65 0a 20 20 20 20 20 | 20 20 20 63 68 6d 6f 64 |se. | chmod|
|00003010| 20 36 36 30 20 24 71 75 | 65 66 69 6c 65 20 20 20 | 660 $qu|efile |
|00003020| 20 20 20 20 20 20 20 20 | 20 23 20 73 65 74 20 70 | | # set p|
|00003030| 65 72 6d 69 73 73 69 6f | 6e 20 6a 75 73 74 20 74 |ermissio|n just t|
|00003040| 6f 20 6d 61 6b 65 20 73 | 75 72 65 0a 09 72 6d 20 |o make s|ure..rm |
|00003050| 2d 66 20 2f 74 6d 70 2f | 74 6d 68 72 65 73 2e 24 |-f /tmp/|tmhres.$|
|00003060| 24 0a 20 20 20 20 65 6e | 64 69 66 0a 20 20 20 20 |$. en|dif. |
|00003070| 75 6e 73 65 74 20 6e 6f | 63 6c 6f 62 62 65 72 0a |unset no|clobber.|
|00003080| 65 6e 64 69 66 0a 23 0a | 23 20 65 6e 64 3a 20 72 |endif.#.|# end: r|
|00003090| 65 70 6c 79 20 74 68 65 | 20 6d 65 73 73 61 67 65 |eply the| message|
|000030a0| 0a 0a 23 20 65 6e 64 3a | 20 22 72 65 73 22 0a 40 |..# end:| "res".@|
|000030b0| 0a 0a 0a 31 2e 33 0a 6c | 6f 67 0a 40 63 6c 65 61 |...1.3.l|og.@clea|
|000030c0| 6e 75 70 2c 20 66 69 78 | 20 6d 61 6e 79 20 70 72 |nup, fix| many pr|
|000030d0| 6f 62 6c 65 6d 73 2c 20 | 6e 65 77 20 61 6e 64 20 |oblems, |new and |
|000030e0| 69 6d 70 72 6f 76 65 64 | 20 6c 6f 63 6b 69 6e 67 |improved| locking|
|000030f0| 20 74 68 61 74 20 64 6f | 65 73 6e 27 74 20 75 73 | that do|esn't us|
|00003100| 65 0a 70 65 72 73 6f 6e | 61 6c 20 66 6f 6c 64 65 |e.person|al folde|
|00003110| 72 2c 20 61 64 64 69 74 | 69 6f 6e 20 6f 66 20 7b |r, addit|ion of {|
|00003120| 72 65 70 6c 2c 72 65 73 | 7d 2e 66 6f 72 6d 61 74 |repl,res|}.format|
|00003130| 20 66 69 6c 74 65 72 20 | 66 69 6c 65 73 0a 40 0a | filter |files.@.|
|00003140| 74 65 78 74 0a 40 64 36 | 35 20 31 0a 61 36 35 20 |text.@d6|5 1.a65 |
|00003150| 31 0a 09 72 6d 20 2d 66 | 20 2f 74 6d 70 2f 74 6d |1..rm -f| /tmp/tm|
|00003160| 68 73 74 61 74 2e 24 24 | 0a 40 0a 0a 0a 31 2e 32 |hstat.$$|.@...1.2|
|00003170| 0a 6c 6f 67 0a 40 66 69 | 78 20 70 72 6f 62 6c 65 |.log.@fi|x proble|
|00003180| 6d 20 77 69 74 68 20 68 | 61 76 69 6e 67 20 61 20 |m with h|aving a |
|00003190| 2b 20 61 73 20 70 61 72 | 74 20 6f 66 20 74 68 65 |+ as par|t of the|
|000031a0| 20 66 6f 6c 64 65 72 20 | 6e 61 6d 65 0a 40 0a 74 | folder |name.@.t|
|000031b0| 65 78 74 0a 40 64 32 20 | 31 0a 64 35 20 32 0a 61 |ext.@d2 |1.d5 2.a|
|000031c0| 37 20 32 0a 73 65 74 20 | 6d 79 66 6f 6c 64 65 72 |7 2.set |myfolder|
|000031d0| 20 3d 20 2b 60 77 68 6f | 61 6d 69 60 0a 73 65 74 | = +`who|ami`.set|
|000031e0| 20 66 6f 72 6d 0a 64 31 | 31 20 36 0a 61 31 36 20 | form.d1|1 6.a16 |
|000031f0| 39 0a 09 63 61 73 65 20 | 22 2b 2a 22 3a 0a 09 20 |9..case |"+*":.. |
|00003200| 20 20 20 73 65 74 20 46 | 4f 4c 44 45 52 20 3d 20 | set F|OLDER = |
|00003210| 60 65 63 68 6f 20 24 73 | 74 72 69 6e 67 20 7c 20 |`echo $s|tring | |
|00003220| 73 65 64 20 2d 65 20 22 | 73 2f 5e 2b 2f 2f 22 60 |sed -e "|s/^+//"`|
|00003230| 0a 09 20 20 20 20 62 72 | 65 61 6b 73 77 0a 09 63 |.. br|eaksw..c|
|00003240| 61 73 65 20 22 5b 30 2d | 39 5d 2a 22 3a 0a 09 20 |ase "[0-|9]*":.. |
|00003250| 20 20 20 73 65 74 20 6d | 65 73 67 20 3d 20 24 73 | set m|esg = $s|
|00003260| 74 72 69 6e 67 0a 09 20 | 20 20 20 62 72 65 61 6b |tring.. | break|
|00003270| 73 77 0a 09 64 65 66 61 | 75 6c 74 3a 0a 09 20 20 |sw..defa|ult:.. |
|00003280| 20 20 65 63 68 6f 20 22 | 75 73 61 67 65 3a 20 20 | echo "|usage: |
|00003290| 72 65 73 20 5b 6d 65 73 | 67 5d 20 5b 2b 66 6f 6c |res [mes|g] [+fol|
|000032a0| 64 65 72 5d 22 0a 09 20 | 20 20 20 65 78 69 74 20 |der]".. | exit |
|000032b0| 31 0a 64 32 30 20 31 0a | 61 32 30 20 31 0a 69 66 |1.d20 1.|a20 1.if|
|000032c0| 20 28 24 3f 46 4f 4c 44 | 45 52 20 3d 3d 20 30 29 | ($?FOLD|ER == 0)|
|000032d0| 20 74 68 65 6e 0a 64 32 | 33 20 32 0a 64 32 36 20 | then.d2|3 2.d26 |
|000032e0| 33 0a 64 33 31 20 32 0a | 61 33 32 20 33 0a 74 65 |3.d31 2.|a32 3.te|
|000032f0| 73 74 20 2d 66 20 7e 24 | 71 75 73 65 72 2f 4d 61 |st -f ~$|quser/Ma|
|00003300| 69 6c 2f 72 65 73 63 6f | 6d 70 73 0a 69 66 20 28 |il/resco|mps.if (|
|00003310| 24 73 74 61 74 75 73 20 | 3d 3d 20 30 20 29 20 74 |$status |== 0 ) t|
|00003320| 68 65 6e 0a 09 73 65 74 | 20 66 6f 72 6d 20 3d 20 |hen..set| form = |
|00003330| 22 2d 66 6f 72 6d 20 7e | 24 71 75 73 65 72 2f 4d |"-form ~|$quser/M|
|00003340| 61 69 6c 2f 72 65 73 63 | 6f 6d 70 73 22 0a 64 33 |ail/resc|omps".d3|
|00003350| 34 20 31 0a 61 33 34 20 | 31 0a 09 73 65 74 20 66 |4 1.a34 |1..set f|
|00003360| 6f 72 6d 20 3d 20 22 2d | 66 6f 72 6d 20 7e 24 71 |orm = "-|form ~$q|
|00003370| 75 73 65 72 2f 4d 61 69 | 6c 2f 72 65 70 6c 63 6f |user/Mai|l/replco|
|00003380| 6d 70 73 22 0a 64 33 37 | 20 37 0a 61 34 33 20 31 |mps".d37| 7.a43 1|
|00003390| 0a 72 65 66 69 6c 65 20 | 24 6d 65 73 67 20 2d 73 |.refile |$mesg -s|
|000033a0| 72 63 20 2b 24 46 4f 4c | 44 45 52 20 24 6d 79 66 |rc +$FOL|DER $myf|
|000033b0| 6f 6c 64 65 72 0a 61 34 | 34 20 33 0a 23 20 64 6f |older.a4|4 3.# do|
|000033c0| 20 74 68 69 73 20 69 6e | 20 63 61 73 65 20 61 6e | this in| case an|
|000033d0| 6f 74 68 65 72 20 6d 65 | 73 73 61 67 65 20 63 6f |other me|ssage co|
|000033e0| 6d 65 73 20 69 6e 2c 20 | 61 6e 64 20 74 68 65 20 |mes in, |and the |
|000033f0| 6d 65 73 73 61 67 65 20 | 77 65 20 6a 75 73 74 20 |message |we just |
|00003400| 72 65 66 69 6c 65 64 0a | 23 20 69 73 6e 60 74 20 |refiled.|# isn`t |
|00003410| 74 68 65 20 6c 61 73 74 | 20 61 6e 79 6d 6f 72 65 |the last| anymore|
|00003420| 20 77 68 65 6e 20 77 65 | 27 72 65 20 64 6f 6e 65 | when we|'re done|
|00003430| 20 64 6f 69 6e 67 20 74 | 68 65 20 72 65 73 2e 2e | doing t|he res..|
|00003440| 2e 0a 73 65 74 20 6c 61 | 73 74 20 3d 20 60 70 69 |..set la|st = `pi|
|00003450| 63 6b 20 24 6d 79 66 6f | 6c 64 65 72 20 6c 61 73 |ck $myfo|lder las|
|00003460| 74 60 0a 64 34 36 20 31 | 37 0a 61 36 32 20 34 0a |t`.d46 1|7.a62 4.|
|00003470| 69 66 20 28 24 73 74 61 | 74 75 73 20 3d 3d 20 30 |if ($sta|tus == 0|
|00003480| 29 20 74 68 65 6e 0a 20 | 20 20 20 72 65 70 6c 20 |) then. | repl |
|00003490| 24 6d 79 66 6f 6c 64 65 | 72 20 24 6c 61 73 74 20 |$myfolde|r $last |
|000034a0| 24 66 6f 72 6d 0a 20 20 | 20 20 69 66 20 28 24 73 |$form. | if ($s|
|000034b0| 74 61 74 75 73 20 3d 3d | 20 30 20 29 20 74 68 65 |tatus ==| 0 ) the|
|000034c0| 6e 0a 20 20 20 20 20 20 | 20 20 72 6d 6d 20 24 6d |n. | rmm $m|
|000034d0| 79 66 6f 6c 64 65 72 20 | 24 6c 61 73 74 0a 64 36 |yfolder |$last.d6|
|000034e0| 34 20 32 0a 61 36 35 20 | 31 0a 20 20 20 20 20 20 |4 2.a65 |1. |
|000034f0| 20 20 72 65 66 69 6c 65 | 20 24 6c 61 73 74 20 2d | refile| $last -|
|00003500| 73 72 63 20 24 6d 79 66 | 6f 6c 64 65 72 20 2b 24 |src $myf|older +$|
|00003510| 46 4f 4c 44 45 52 0a 64 | 36 37 20 31 0a 64 36 39 |FOLDER.d|67 1.d69|
|00003520| 20 32 0a 64 37 32 20 31 | 0a 61 37 32 20 31 0a 66 | 2.d72 1|.a72 1.f|
|00003530| 6f 6c 64 65 72 20 2b 24 | 46 4f 4c 44 45 52 20 2d |older +$|FOLDER -|
|00003540| 66 61 73 74 20 3e 2f 64 | 65 76 2f 6e 75 6c 6c 0a |fast >/d|ev/null.|
|00003550| 40 0a 0a 0a 31 2e 31 0a | 6c 6f 67 0a 40 49 6e 69 |@...1.1.|log.@Ini|
|00003560| 74 69 61 6c 20 72 65 76 | 69 73 69 6f 6e 0a 40 0a |tial rev|ision.@.|
|00003570| 74 65 78 74 0a 40 64 31 | 31 20 31 0a 61 31 31 20 |text.@d1|1 1.a11 |
|00003580| 31 0a 09 20 20 20 20 73 | 65 74 20 46 4f 4c 44 45 |1.. s|et FOLDE|
|00003590| 52 20 3d 20 60 65 63 68 | 6f 20 24 73 74 72 69 6e |R = `ech|o $strin|
|000035a0| 67 20 7c 20 61 77 6b 20 | 2d 46 2b 20 27 7b 20 70 |g | awk |-F+ '{ p|
|000035b0| 72 69 6e 74 20 24 32 20 | 7d 27 60 0a 40 0a 2b 24 |rint $2 |}'`.@.+$|
|000035c0| 46 4f 4c 44 45 52 20 24 | 6d 65 73 67 60 20 23 20 |FOLDER $|mesg` # |
|000035d0| 6b 65 65 70 20 74 72 61 | 63 6b 20 6f 66 20 74 68 |keep tra|ck of th|
|000035e0| 65 20 66 69 6c 65 20 69 | 6e 20 74 68 65 20 71 75 |e file i|n the qu|
|000035f0| 65 75 65 0a 69 66 20 28 | 24 73 74 61 74 75 73 29 |eue.if (|$status)|
|00003600| 71 75 65 75 65 6d 68 2f | 62 69 6e 2f 52 43 53 2f |queuemh/|bin/RCS/|
|00003610| 73 74 61 74 2e 6d 68 2c | 76 00 00 00 00 00 00 00 |stat.mh,|v.......|
|00003620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003660| 00 00 00 00 20 20 20 34 | 30 30 20 00 20 32 36 34 |.... 4|00 . 264|
|00003670| 33 31 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |31 . |12 . |
|00003680| 20 20 31 32 31 30 37 20 | 20 34 36 36 36 30 34 36 | 12107 | 4666046|
|00003690| 35 33 30 20 20 31 30 36 | 30 33 00 20 00 00 00 00 |530 106|03. ....|
|000036a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003800| 68 65 61 64 20 20 20 20 | 20 31 2e 35 3b 0a 62 72 |head | 1.5;.br|
|00003810| 61 6e 63 68 20 20 20 3b | 0a 61 63 63 65 73 73 20 |anch ;|.access |
|00003820| 20 20 3b 0a 73 79 6d 62 | 6f 6c 73 20 20 3b 0a 6c | ;.symb|ols ;.l|
|00003830| 6f 63 6b 73 20 20 20 20 | 3b 20 73 74 72 69 63 74 |ocks |; strict|
|00003840| 3b 0a 63 6f 6d 6d 65 6e | 74 20 20 40 40 3b 0a 0a |;.commen|t @@;..|
|00003850| 0a 31 2e 35 0a 64 61 74 | 65 20 20 20 20 20 39 30 |.1.5.dat|e 90|
|00003860| 2e 30 38 2e 32 36 2e 31 | 36 2e 32 39 2e 30 30 3b |.08.26.1|6.29.00;|
|00003870| 20 20 61 75 74 68 6f 72 | 20 64 79 6b 65 72 3b 20 | author| dyker; |
|00003880| 20 73 74 61 74 65 20 45 | 78 70 3b 0a 62 72 61 6e | state E|xp;.bran|
|00003890| 63 68 65 73 20 3b 0a 6e | 65 78 74 20 20 20 20 20 |ches ;.n|ext |
|000038a0| 31 2e 34 3b 0a 0a 31 2e | 34 0a 64 61 74 65 20 20 |1.4;..1.|4.date |
|000038b0| 20 20 20 39 30 2e 30 37 | 2e 30 32 2e 31 38 2e 32 | 90.07|.02.18.2|
|000038c0| 34 2e 34 35 3b 20 20 61 | 75 74 68 6f 72 20 64 79 |4.45; a|uthor dy|
|000038d0| 6b 65 72 3b 20 20 73 74 | 61 74 65 20 45 78 70 3b |ker; st|ate Exp;|
|000038e0| 0a 62 72 61 6e 63 68 65 | 73 20 3b 0a 6e 65 78 74 |.branche|s ;.next|
|000038f0| 20 20 20 20 20 31 2e 33 | 3b 0a 0a 31 2e 33 0a 64 | 1.3|;..1.3.d|
|00003900| 61 74 65 20 20 20 20 20 | 39 30 2e 30 36 2e 30 37 |ate |90.06.07|
|00003910| 2e 31 32 2e 35 31 2e 31 | 30 3b 20 20 61 75 74 68 |.12.51.1|0; auth|
|00003920| 6f 72 20 64 79 6b 65 72 | 3b 20 20 73 74 61 74 65 |or dyker|; state|
|00003930| 20 45 78 70 3b 0a 62 72 | 61 6e 63 68 65 73 20 3b | Exp;.br|anches ;|
|00003940| 0a 6e 65 78 74 20 20 20 | 20 20 31 2e 32 3b 0a 0a |.next | 1.2;..|
|00003950| 31 2e 32 0a 64 61 74 65 | 20 20 20 20 20 39 30 2e |1.2.date| 90.|
|00003960| 30 35 2e 32 32 2e 31 31 | 2e 30 34 2e 30 33 3b 20 |05.22.11|.04.03; |
|00003970| 20 61 75 74 68 6f 72 20 | 64 79 6b 65 72 3b 20 20 | author |dyker; |
|00003980| 73 74 61 74 65 20 45 78 | 70 3b 0a 62 72 61 6e 63 |state Ex|p;.branc|
|00003990| 68 65 73 20 3b 0a 6e 65 | 78 74 20 20 20 20 20 31 |hes ;.ne|xt 1|
|000039a0| 2e 31 3b 0a 0a 31 2e 31 | 0a 64 61 74 65 20 20 20 |.1;..1.1|.date |
|000039b0| 20 20 39 30 2e 30 35 2e | 32 31 2e 31 33 2e 34 37 | 90.05.|21.13.47|
|000039c0| 2e 34 37 3b 20 20 61 75 | 74 68 6f 72 20 64 79 6b |.47; au|thor dyk|
|000039d0| 65 72 3b 20 20 73 74 61 | 74 65 20 45 78 70 3b 0a |er; sta|te Exp;.|
|000039e0| 62 72 61 6e 63 68 65 73 | 20 3b 0a 6e 65 78 74 20 |branches| ;.next |
|000039f0| 20 20 20 20 3b 0a 0a 0a | 64 65 73 63 0a 40 41 63 | ;...|desc.@Ac|
|00003a00| 6b 6e 6f 77 6c 65 64 67 | 65 20 6f 72 20 73 74 61 |knowledg|e or sta|
|00003a10| 74 75 73 20 61 20 71 75 | 65 75 65 20 6d 65 73 73 |tus a qu|eue mess|
|00003a20| 61 67 65 0a 40 0a 0a 0a | 31 2e 35 0a 6c 6f 67 0a |age.@...|1.5.log.|
|00003a30| 40 74 61 6b 65 20 64 6f | 75 62 6c 65 2d 71 75 6f |@take do|uble-quo|
|00003a40| 74 65 73 20 6f 75 74 20 | 6f 66 20 65 63 68 6f 20 |tes out |of echo |
|00003a50| 62 65 63 61 75 73 65 20 | 6f 66 20 77 65 69 72 64 |because |of weird|
|00003a60| 6e 65 73 73 20 69 6e 20 | 75 6c 74 72 69 78 20 63 |ness in |ultrix c|
|00003a70| 61 75 73 69 6e 67 0a 63 | 6f 6e 74 72 6f 6c 20 63 |ausing.c|ontrol c|
|00003a80| 68 61 72 73 20 74 6f 20 | 62 65 20 69 6e 74 65 72 |hars to |be inter|
|00003a90| 70 6f 73 65 64 0a 40 0a | 74 65 78 74 0a 40 23 21 |posed.@.|text.@#!|
|00003aa0| 2f 62 69 6e 2f 63 73 68 | 20 2d 66 62 0a 0a 75 6d |/bin/csh| -fb..um|
|00003ab0| 61 73 6b 20 30 30 37 0a | 0a 23 20 62 65 67 69 6e |ask 007.|.# begin|
|00003ac0| 3a 20 73 65 74 20 71 75 | 65 75 65 20 66 6f 6c 64 |: set qu|eue fold|
|00003ad0| 65 72 28 46 4f 4c 44 45 | 52 29 20 61 6e 64 20 73 |er(FOLDE|R) and s|
|00003ae0| 65 74 20 63 75 72 72 65 | 6e 74 20 6d 65 73 73 61 |et curre|nt messa|
|00003af0| 67 65 28 6d 65 73 67 29 | 0a 23 0a 73 65 74 20 6d |ge(mesg)|.#.set m|
|00003b00| 65 73 67 20 3d 20 63 75 | 72 0a 0a 66 6f 72 65 61 |esg = cu|r..forea|
|00003b10| 63 68 20 73 74 72 69 6e | 67 20 28 24 61 72 67 76 |ch strin|g ($argv|
|00003b20| 29 0a 20 20 20 20 73 77 | 69 74 63 68 20 28 24 73 |). sw|itch ($s|
|00003b30| 74 72 69 6e 67 29 0a 20 | 20 20 20 20 20 20 20 63 |tring). | c|
|00003b40| 61 73 65 20 22 2d 65 22 | 3a 0a 20 20 20 20 20 20 |ase "-e"|:. |
|00003b50| 20 20 20 20 20 20 73 65 | 74 20 72 61 77 65 64 69 | se|t rawedi|
|00003b60| 74 20 3b 20 62 72 65 61 | 6b 73 77 0a 20 20 20 20 |t ; brea|ksw. |
|00003b70| 20 20 20 20 63 61 73 65 | 20 22 2b 2a 22 3a 0a 20 | case| "+*":. |
|00003b80| 20 20 20 20 20 20 20 20 | 20 20 20 73 65 74 20 46 | | set F|
|00003b90| 4f 4c 44 45 52 20 3d 20 | 60 65 63 68 6f 20 24 73 |OLDER = |`echo $s|
|00003ba0| 74 72 69 6e 67 20 7c 20 | 73 65 64 20 2d 65 20 73 |tring | |sed -e s|
|00003bb0| 2f 5e 2b 2f 2f 60 20 3b | 20 62 72 65 61 6b 73 77 |/^+//` ;| breaksw|
|00003bc0| 0a 20 20 20 20 20 20 20 | 20 63 61 73 65 20 22 5b |. | case "[|
|00003bd0| 30 2d 39 5d 2a 22 3a 0a | 20 20 20 20 20 20 20 20 |0-9]*":.| |
|00003be0| 20 20 20 20 73 65 74 20 | 6d 65 73 67 20 3d 20 24 | set |mesg = $|
|00003bf0| 73 74 72 69 6e 67 20 3b | 20 62 72 65 61 6b 73 77 |string ;| breaksw|
|00003c00| 0a 20 20 20 20 20 20 20 | 20 64 65 66 61 75 6c 74 |. | default|
|00003c10| 3a 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 65 63 |:. | ec|
|00003c20| 68 6f 20 22 55 73 61 67 | 65 3a 20 73 74 61 74 20 |ho "Usag|e: stat |
|00003c30| 5b 2d 65 5d 20 5b 6d 65 | 73 67 5d 20 5b 2b 66 6f |[-e] [me|sg] [+fo|
|00003c40| 6c 64 65 72 5d 22 20 3b | 20 65 78 69 74 20 31 0a |lder]" ;| exit 1.|
|00003c50| 20 20 20 20 65 6e 64 73 | 77 0a 65 6e 64 0a 0a 69 | ends|w.end..i|
|00003c60| 66 20 28 21 20 24 3f 46 | 4f 4c 44 45 52 29 20 74 |f (! $?F|OLDER) t|
|00003c70| 68 65 6e 0a 20 20 20 20 | 20 20 20 20 73 65 74 20 |hen. | set |
|00003c80| 46 4f 4c 44 45 52 20 3d | 20 60 66 6f 6c 64 65 72 |FOLDER =| `folder|
|00003c90| 20 2d 66 61 73 74 60 0a | 65 6e 64 69 66 0a 23 0a | -fast`.|endif.#.|
|00003ca0| 23 20 65 6e 64 3a 20 73 | 65 74 20 71 75 65 75 65 |# end: s|et queue|
|00003cb0| 20 66 6f 6c 64 65 72 28 | 46 4f 4c 44 45 52 29 20 | folder(|FOLDER) |
|00003cc0| 61 6e 64 20 73 65 74 20 | 63 75 72 72 65 6e 74 20 |and set |current |
|00003cd0| 6d 65 73 73 61 67 65 28 | 6d 65 73 67 29 0a 0a 0a |message(|mesg)...|
|00003ce0| 23 20 62 65 67 69 6e 3a | 20 63 68 65 63 6b 20 71 |# begin:| check q|
|00003cf0| 75 65 75 65 20 6f 77 6e | 65 72 2c 20 74 68 65 6e |ueue own|er, then|
|00003d00| 20 73 65 74 20 66 6f 72 | 6d 20 61 6e 64 20 66 69 | set for|m and fi|
|00003d10| 6c 74 65 72 0a 23 0a 73 | 65 74 20 71 75 73 65 72 |lter.#.s|et quser|
|00003d20| 20 3d 20 24 46 4f 4c 44 | 45 52 0a 0a 73 65 74 20 | = $FOLD|ER..set |
|00003d30| 66 6f 72 6d 20 3d 20 22 | 2d 66 6f 72 6d 20 7e 24 |form = "|-form ~$|
|00003d40| 71 75 73 65 72 2f 4d 61 | 69 6c 2f 72 65 70 6c 63 |quser/Ma|il/replc|
|00003d50| 6f 6d 70 73 22 0a 0a 69 | 66 20 28 2d 65 20 7e 24 |omps"..i|f (-e ~$|
|00003d60| 71 75 73 65 72 2f 4d 61 | 69 6c 2f 73 74 61 74 2e |quser/Ma|il/stat.|
|00003d70| 66 6f 72 6d 61 74 29 20 | 74 68 65 6e 0a 20 20 20 |format) |then. |
|00003d80| 20 20 20 20 20 73 65 74 | 20 66 69 6c 74 65 72 20 | set| filter |
|00003d90| 3d 20 22 2d 66 69 6c 74 | 65 72 20 7e 24 71 75 73 |= "-filt|er ~$qus|
|00003da0| 65 72 2f 4d 61 69 6c 2f | 73 74 61 74 2e 66 6f 72 |er/Mail/|stat.for|
|00003db0| 6d 61 74 22 0a 65 6c 73 | 65 0a 20 20 20 20 20 20 |mat".els|e. |
|00003dc0| 20 20 73 65 74 20 66 69 | 6c 74 65 72 20 3d 20 22 | set fi|lter = "|
|00003dd0| 2d 66 69 6c 74 65 72 20 | 7e 24 71 75 73 65 72 2f |-filter |~$quser/|
|00003de0| 4d 61 69 6c 2f 72 65 70 | 6c 2e 66 6f 72 6d 61 74 |Mail/rep|l.format|
|00003df0| 22 0a 65 6e 64 69 66 0a | 23 0a 23 20 65 6e 64 3a |".endif.|#.# end:|
|00003e00| 20 63 68 65 63 6b 20 71 | 75 65 75 65 20 6f 77 6e | check q|ueue own|
|00003e10| 65 72 2c 20 74 68 65 6e | 20 73 65 74 20 66 6f 72 |er, then| set for|
|00003e20| 6d 20 61 6e 64 20 66 69 | 6c 74 65 72 0a 0a 0a 73 |m and fi|lter...s|
|00003e30| 65 74 20 71 75 65 66 69 | 6c 65 20 3d 20 60 6d 68 |et quefi|le = `mh|
|00003e40| 70 61 74 68 20 2b 24 46 | 4f 4c 44 45 52 20 24 6d |path +$F|OLDER $m|
|00003e50| 65 73 67 60 20 23 20 6b | 65 65 70 20 74 72 61 63 |esg` # k|eep trac|
|00003e60| 6b 20 6f 66 20 74 68 65 | 20 66 69 6c 65 20 69 6e |k of the| file in|
|00003e70| 20 74 68 65 20 71 75 65 | 75 65 0a 69 66 20 28 24 | the que|ue.if ($|
|00003e80| 73 74 61 74 75 73 29 20 | 65 78 69 74 20 31 0a 0a |status) |exit 1..|
|00003e90| 6d 76 20 24 71 75 65 66 | 69 6c 65 20 2f 74 6d 70 |mv $quef|ile /tmp|
|00003ea0| 2f 74 6d 68 73 74 61 74 | 2e 24 24 20 20 20 20 20 |/tmhstat|.$$ |
|00003eb0| 20 20 20 20 20 20 23 20 | 70 75 74 20 6d 65 73 73 | # |put mess|
|00003ec0| 61 67 65 20 6f 75 74 20 | 6f 66 20 74 68 65 20 71 |age out |of the q|
|00003ed0| 75 65 75 65 20 74 6f 20 | 6c 6f 63 6b 20 69 74 0a |ueue to |lock it.|
|00003ee0| 69 66 20 28 24 73 74 61 | 74 75 73 29 20 65 78 69 |if ($sta|tus) exi|
|00003ef0| 74 20 31 0a 0a 0a 69 66 | 20 28 24 3f 72 61 77 65 |t 1...if| ($?rawe|
|00003f00| 64 69 74 29 20 74 68 65 | 6e 20 20 20 20 20 20 20 |dit) the|n |
|00003f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 23 20 72 61 | | # ra|
|00003f20| 77 20 65 64 69 74 20 74 | 68 65 20 6d 65 73 73 67 |w edit t|he messg|
|00003f30| 65 0a 20 20 20 20 65 63 | 68 6f 20 27 27 20 3e 3e |e. ec|ho '' >>|
|00003f40| 20 2f 74 6d 70 2f 74 6d | 68 73 74 61 74 2e 24 24 | /tmp/tm|hstat.$$|
|00003f50| 0a 20 20 20 20 65 63 68 | 6f 20 2d 2d 2d 2d 2d 2d |. ech|o ------|
|00003f60| 2d 2d 2d 2d 20 3e 3e 20 | 2f 74 6d 70 2f 74 6d 68 |---- >> |/tmp/tmh|
|00003f70| 73 74 61 74 2e 24 24 0a | 20 20 20 20 65 63 68 6f |stat.$$.| echo|
|00003f80| 20 53 74 61 74 75 73 2d | 65 64 69 74 3a 20 62 79 | Status-|edit: by|
|00003f90| 20 24 7b 55 53 45 52 7d | 20 60 64 61 74 65 60 20 | ${USER}| `date` |
|00003fa0| 3e 3e 20 2f 74 6d 70 2f | 74 6d 68 73 74 61 74 2e |>> /tmp/|tmhstat.|
|00003fb0| 24 24 0a 20 20 20 20 65 | 63 68 6f 20 2d 2d 2d 2d |$$. e|cho ----|
|00003fc0| 2d 2d 2d 2d 2d 2d 20 3e | 3e 20 2f 74 6d 70 2f 74 |------ >|> /tmp/t|
|00003fd0| 6d 68 73 74 61 74 2e 24 | 24 0a 20 20 20 20 65 63 |mhstat.$|$. ec|
|00003fe0| 68 6f 20 27 27 20 3e 3e | 20 2f 74 6d 70 2f 74 6d |ho '' >>| /tmp/tm|
|00003ff0| 68 73 74 61 74 2e 24 24 | 0a 20 20 20 20 28 74 65 |hstat.$$|. (te|
|00004000| 73 74 20 2d 78 20 24 45 | 44 49 54 4f 52 29 20 3e |st -x $E|DITOR) >|
|00004010| 26 20 2f 64 65 76 2f 6e | 75 6c 6c 20 20 20 20 23 |& /dev/n|ull #|
|00004020| 20 73 65 6c 65 63 74 20 | 74 68 65 20 65 64 69 74 | select |the edit|
|00004030| 6f 72 20 74 6f 20 75 73 | 65 0a 20 20 20 20 69 66 |or to us|e. if|
|00004040| 20 28 24 73 74 61 74 75 | 73 29 20 74 68 65 6e 0a | ($statu|s) then.|
|00004050| 20 20 20 20 20 20 20 20 | 2f 75 73 72 2f 75 63 62 | |/usr/ucb|
|00004060| 2f 76 69 20 2f 74 6d 70 | 2f 74 6d 68 73 74 61 74 |/vi /tmp|/tmhstat|
|00004070| 2e 24 24 0a 20 20 20 20 | 65 6c 73 65 0a 20 20 20 |.$$. |else. |
|00004080| 20 20 20 20 20 24 45 44 | 49 54 4f 52 20 2f 74 6d | $ED|ITOR /tm|
|00004090| 70 2f 74 6d 68 73 74 61 | 74 2e 24 24 0a 20 20 20 |p/tmhsta|t.$$. |
|000040a0| 20 65 6e 64 69 66 0a 65 | 6c 73 65 20 20 20 20 20 | endif.e|lse |
|000040b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000040c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 23 20 72 | | # r|
|000040d0| 65 70 6c 79 20 74 6f 20 | 74 68 65 20 6d 65 73 73 |eply to |the mess|
|000040e0| 61 67 65 0a 20 20 20 20 | 72 65 70 6c 20 2d 66 69 |age. |repl -fi|
|000040f0| 6c 65 20 2f 74 6d 70 2f | 74 6d 68 73 74 61 74 2e |le /tmp/|tmhstat.|
|00004100| 24 24 20 24 66 6f 72 6d | 20 2d 65 64 69 74 6f 72 |$$ $form| -editor|
|00004110| 20 74 6d 68 65 64 69 74 | 20 24 66 69 6c 74 65 72 | tmhedit| $filter|
|00004120| 20 2d 6e 6f 63 63 20 6d | 65 20 2d 6e 6f 63 63 20 | -nocc m|e -nocc |
|00004130| 74 6f 20 2d 61 6e 6e 6f | 74 61 74 65 0a 0a 20 20 |to -anno|tate.. |
|00004140| 20 20 69 66 20 28 21 20 | 24 73 74 61 74 75 73 29 | if (! |$status)|
|00004150| 20 74 68 65 6e 20 20 20 | 20 20 20 20 20 20 20 20 | then | |
|00004160| 20 20 20 20 23 20 69 66 | 20 72 65 70 6c 69 65 64 | # if| replied|
|00004170| 2c 20 61 64 64 20 66 69 | 65 6c 64 20 74 6f 20 68 |, add fi|eld to h|
|00004180| 65 61 64 65 72 0a 20 20 | 20 20 20 20 20 20 65 63 |eader. | ec|
|00004190| 68 6f 20 55 73 65 72 41 | 63 6b 65 64 3a 20 62 79 |ho UserA|cked: by|
|000041a0| 20 60 77 68 6f 61 6d 69 | 60 20 3e 20 2f 74 6d 70 | `whoami|` > /tmp|
|000041b0| 2f 74 6d 68 74 6d 70 2e | 24 24 0a 20 20 20 20 20 |/tmhtmp.|$$. |
|000041c0| 20 20 20 65 63 68 6f 20 | 52 65 70 6c 69 65 64 3a | echo |Replied:|
|000041d0| 20 60 64 61 74 65 60 20 | 3e 3e 20 2f 74 6d 70 2f | `date` |>> /tmp/|
|000041e0| 74 6d 68 74 6d 70 2e 24 | 24 0a 20 20 20 20 20 20 |tmhtmp.$|$. |
|000041f0| 20 20 63 61 74 20 2f 74 | 6d 70 2f 74 6d 68 73 74 | cat /t|mp/tmhst|
|00004200| 61 74 2e 24 24 20 3e 3e | 20 2f 74 6d 70 2f 74 6d |at.$$ >>| /tmp/tm|
|00004210| 68 74 6d 70 2e 24 24 0a | 20 20 20 20 20 20 20 20 |htmp.$$.| |
|00004220| 6d 76 20 2d 66 20 2f 74 | 6d 70 2f 74 6d 68 74 6d |mv -f /t|mp/tmhtm|
|00004230| 70 2e 24 24 20 2f 74 6d | 70 2f 74 6d 68 73 74 61 |p.$$ /tm|p/tmhsta|
|00004240| 74 2e 24 24 0a 20 20 20 | 20 20 20 20 20 74 6d 68 |t.$$. | tmh|
|00004250| 61 70 70 65 6e 64 20 2f | 74 6d 70 2f 74 6d 68 73 |append /|tmp/tmhs|
|00004260| 74 61 74 2e 24 24 0a 09 | 72 6d 20 2d 66 20 2f 74 |tat.$$..|rm -f /t|
|00004270| 6d 70 2f 74 6d 68 74 6d | 70 2e 24 24 0a 20 20 20 |mp/tmhtm|p.$$. |
|00004280| 20 65 6e 64 69 66 0a 65 | 6e 64 69 66 0a 0a 0a 23 | endif.e|ndif...#|
|00004290| 20 62 65 67 69 6e 3a 20 | 72 65 66 69 6c 65 20 6d | begin: |refile m|
|000042a0| 65 73 73 61 67 65 20 62 | 61 63 6b 20 28 22 75 6e |essage b|ack ("un|
|000042b0| 6c 6f 63 6b 22 20 74 68 | 65 20 6d 65 73 73 61 67 |lock" th|e messag|
|000042c0| 65 29 0a 23 0a 73 65 74 | 20 6e 6f 63 6c 6f 62 62 |e).#.set| noclobb|
|000042d0| 65 72 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |er | |
|000042e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 23 20 69 6e | | # in|
|000042f0| 20 63 61 73 65 20 61 20 | 6e 65 77 20 6d 65 73 73 | case a |new mess|
|00004300| 61 67 65 20 63 61 6d 65 | 20 69 6e 0a 28 63 61 74 |age came| in.(cat|
|00004310| 20 2f 74 6d 70 2f 74 6d | 68 73 74 61 74 2e 24 24 | /tmp/tm|hstat.$$|
|00004320| 20 3e 20 24 71 75 65 66 | 69 6c 65 29 20 3e 26 20 | > $quef|ile) >& |
|00004330| 2f 64 65 76 2f 6e 75 6c | 6c 20 20 23 20 73 75 70 |/dev/nul|l # sup|
|00004340| 70 72 65 73 73 20 61 6e | 79 20 65 72 72 6f 72 20 |press an|y error |
|00004350| 6d 73 67 0a 69 66 20 28 | 24 73 74 61 74 75 73 29 |msg.if (|$status)|
|00004360| 20 74 68 65 6e 0a 20 20 | 20 20 72 65 66 69 6c 65 | then. | refile|
|00004370| 20 2d 66 69 6c 65 20 2f | 74 6d 70 2f 74 6d 68 73 | -file /|tmp/tmhs|
|00004380| 74 61 74 2e 24 24 20 2b | 24 46 4f 4c 44 45 52 0a |tat.$$ +|$FOLDER.|
|00004390| 65 6c 73 65 0a 20 20 20 | 20 63 68 6d 6f 64 20 36 |else. | chmod 6|
|000043a0| 36 30 20 24 71 75 65 66 | 69 6c 65 20 20 20 20 20 |60 $quef|ile |
|000043b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 23 20 73 65 | | # se|
|000043c0| 74 20 70 65 72 6d 69 73 | 73 69 6f 6e 20 6a 75 73 |t permis|sion jus|
|000043d0| 74 20 74 6f 20 6d 61 6b | 65 20 73 75 72 65 0a 20 |t to mak|e sure. |
|000043e0| 20 20 20 72 6d 20 2d 66 | 20 2f 74 6d 70 2f 74 6d | rm -f| /tmp/tm|
|000043f0| 68 73 74 61 74 2e 24 24 | 0a 65 6e 64 69 66 0a 75 |hstat.$$|.endif.u|
|00004400| 6e 73 65 74 20 6e 6f 63 | 6c 6f 62 62 65 72 0a 23 |nset noc|lobber.#|
|00004410| 0a 23 20 65 6e 64 3a 20 | 72 65 66 69 6c 65 20 6d |.# end: |refile m|
|00004420| 65 73 73 61 67 65 20 62 | 61 63 6b 20 28 22 75 6e |essage b|ack ("un|
|00004430| 6c 6f 63 6b 22 20 74 68 | 65 20 6d 65 73 73 61 67 |lock" th|e messag|
|00004440| 65 29 0a 0a 23 20 65 6e | 64 3a 20 22 73 74 61 74 |e)..# en|d: "stat|
|00004450| 22 0a 40 0a 0a 0a 31 2e | 34 0a 6c 6f 67 0a 40 63 |".@...1.|4.log.@c|
|00004460| 6c 65 61 6e 75 70 2c 20 | 66 69 78 20 6d 61 6e 79 |leanup, |fix many|
|00004470| 20 70 72 6f 62 6c 65 6d | 73 2c 20 6e 65 77 20 61 | problem|s, new a|
|00004480| 6e 64 20 69 6d 70 72 6f | 76 65 64 20 6c 6f 63 6b |nd impro|ved lock|
|00004490| 69 6e 67 20 74 68 61 74 | 20 64 6f 65 73 6e 27 74 |ing that| doesn't|
|000044a0| 20 75 73 65 0a 70 65 72 | 73 6f 6e 61 6c 20 66 6f | use.per|sonal fo|
|000044b0| 6c 64 65 72 2c 20 61 64 | 64 69 74 69 6f 6e 20 6f |lder, ad|dition o|
|000044c0| 66 20 7b 72 65 70 6c 2c | 72 65 73 7d 2e 66 6f 72 |f {repl,|res}.for|
|000044d0| 6d 61 74 20 66 69 6c 74 | 65 72 20 66 69 6c 65 73 |mat filt|er files|
|000044e0| 0a 40 0a 74 65 78 74 0a | 40 64 35 32 20 35 0a 61 |.@.text.|@d52 5.a|
|000044f0| 35 36 20 35 0a 20 20 20 | 20 65 63 68 6f 20 22 22 |56 5. | echo ""|
|00004500| 20 3e 3e 20 2f 74 6d 70 | 2f 74 6d 68 73 74 61 74 | >> /tmp|/tmhstat|
|00004510| 2e 24 24 0a 20 20 20 20 | 65 63 68 6f 20 22 2d 2d |.$$. |echo "--|
|00004520| 2d 2d 2d 2d 2d 2d 2d 2d | 22 20 3e 3e 20 2f 74 6d |--------|" >> /tm|
|00004530| 70 2f 74 6d 68 73 74 61 | 74 2e 24 24 0a 20 20 20 |p/tmhsta|t.$$. |
|00004540| 20 65 63 68 6f 20 22 53 | 74 61 74 75 73 28 65 64 | echo "S|tatus(ed|
|00004550| 69 74 29 3a 20 62 79 20 | 24 7b 55 53 45 52 7d 20 |it): by |${USER} |
|00004560| 60 64 61 74 65 60 22 20 | 3e 3e 20 2f 74 6d 70 2f |`date`" |>> /tmp/|
|00004570| 74 6d 68 73 74 61 74 2e | 24 24 0a 20 20 20 20 65 |tmhstat.|$$. e|
|00004580| 63 68 6f 20 22 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 22 |cho "---|-------"|
|00004590| 20 3e 3e 20 2f 74 6d 70 | 2f 74 6d 68 73 74 61 74 | >> /tmp|/tmhstat|
|000045a0| 2e 24 24 0a 20 20 20 20 | 65 63 68 6f 20 22 22 20 |.$$. |echo "" |
|000045b0| 3e 3e 20 2f 74 6d 70 2f | 74 6d 68 73 74 61 74 2e |>> /tmp/|tmhstat.|
|000045c0| 24 24 0a 64 36 37 20 32 | 0a 61 36 38 20 32 0a 20 |$$.d67 2|.a68 2. |
|000045d0| 20 20 20 20 20 20 20 65 | 63 68 6f 20 22 55 73 65 | e|cho "Use|
|000045e0| 72 41 63 6b 65 64 3a 20 | 62 79 20 60 77 68 6f 61 |rAcked: |by `whoa|
|000045f0| 6d 69 60 22 20 3e 20 2f | 74 6d 70 2f 74 6d 68 74 |mi`" > /|tmp/tmht|
|00004600| 6d 70 2e 24 24 0a 20 20 | 20 20 20 20 20 20 65 63 |mp.$$. | ec|
|00004610| 68 6f 20 22 52 65 70 6c | 69 65 64 3a 20 60 64 61 |ho "Repl|ied: `da|
|00004620| 74 65 60 22 20 3e 3e 20 | 2f 74 6d 70 2f 74 6d 68 |te`" >> |/tmp/tmh|
|00004630| 74 6d 70 2e 24 24 0a 40 | 0a 0a 0a 31 2e 33 0a 6c |tmp.$$.@|...1.3.l|
|00004640| 6f 67 0a 40 61 64 64 65 | 64 20 72 65 73 2d 6c 69 |og.@adde|d res-li|
|00004650| 6b 65 20 6c 6f 63 6b 69 | 6e 67 0a 40 0a 74 65 78 |ke locki|ng.@.tex|
|00004660| 74 0a 40 64 32 20 31 0a | 64 35 20 32 0a 61 36 20 |t.@d2 1.|d5 2.a6 |
|00004670| 31 0a 73 65 74 20 64 65 | 64 69 74 6f 72 20 3d 20 |1.set de|ditor = |
|00004680| 2f 75 73 72 2f 75 63 62 | 2f 76 69 0a 61 37 20 31 |/usr/ucb|/vi.a7 1|
|00004690| 0a 73 65 74 20 66 6f 72 | 6d 0a 64 31 31 20 38 0a |.set for|m.d11 8.|
|000046a0| 61 31 38 20 31 32 0a 09 | 63 61 73 65 20 22 2d 65 |a18 12..|case "-e|
|000046b0| 22 3a 0a 09 20 20 20 20 | 73 65 74 20 72 61 77 65 |":.. |set rawe|
|000046c0| 64 69 74 20 3d 20 31 0a | 09 20 20 20 20 62 72 65 |dit = 1.|. bre|
|000046d0| 61 6b 73 77 0a 09 63 61 | 73 65 20 22 2b 2a 22 3a |aksw..ca|se "+*":|
|000046e0| 0a 09 20 20 20 20 73 65 | 74 20 46 4f 4c 44 45 52 |.. se|t FOLDER|
|000046f0| 20 3d 20 60 65 63 68 6f | 20 24 73 74 72 69 6e 67 | = `echo| $string|
|00004700| 20 7c 20 73 65 64 20 2d | 65 20 22 73 2f 5e 2b 2f | | sed -|e "s/^+/|
|00004710| 2f 22 60 0a 09 20 20 20 | 20 62 72 65 61 6b 73 77 |/"`.. | breaksw|
|00004720| 0a 09 63 61 73 65 20 22 | 5b 30 2d 39 5d 2a 22 3a |..case "|[0-9]*":|
|00004730| 0a 09 20 20 20 20 73 65 | 74 20 6d 65 73 67 20 3d |.. se|t mesg =|
|00004740| 20 24 73 74 72 69 6e 67 | 0a 09 20 20 20 20 62 72 | $string|.. br|
|00004750| 65 61 6b 73 77 0a 09 64 | 65 66 61 75 6c 74 3a 0a |eaksw..d|efault:.|
|00004760| 09 20 20 20 20 65 63 68 | 6f 20 22 75 73 61 67 65 |. ech|o "usage|
|00004770| 3a 20 20 73 74 61 74 20 | 5b 2d 65 5d 20 5b 6d 65 |: stat |[-e] [me|
|00004780| 73 67 5d 20 5b 2b 66 6f | 6c 64 65 72 5d 22 0a 09 |sg] [+fo|lder]"..|
|00004790| 20 20 20 20 65 78 69 74 | 20 31 0a 64 32 32 20 32 | exit| 1.d22 2|
|000047a0| 0a 61 32 33 20 32 0a 69 | 66 20 28 24 3f 46 4f 4c |.a23 2.i|f ($?FOL|
|000047b0| 44 45 52 20 3d 3d 20 30 | 29 20 74 68 65 6e 0a 09 |DER == 0|) then..|
|000047c0| 73 65 74 20 46 4f 4c 44 | 45 52 20 3d 20 60 66 6f |set FOLD|ER = `fo|
|000047d0| 6c 64 65 72 20 2d 66 61 | 73 74 60 0a 64 32 35 20 |lder -fa|st`.d25 |
|000047e0| 32 0a 64 32 38 20 33 0a | 64 33 35 20 37 0a 61 34 |2.d28 3.|d35 7.a4|
|000047f0| 31 20 31 0a 73 65 74 20 | 66 69 6c 65 20 3d 20 60 |1 1.set |file = `|
|00004800| 6d 68 70 61 74 68 20 2b | 24 46 4f 4c 44 45 52 20 |mhpath +|$FOLDER |
|00004810| 24 6d 65 73 67 60 0a 64 | 34 33 20 31 30 0a 61 35 |$mesg`.d|43 10.a5|
|00004820| 32 20 32 0a 69 66 20 28 | 24 3f 72 61 77 65 64 69 |2 2.if (|$?rawedi|
|00004830| 74 29 20 74 68 65 6e 0a | 20 20 20 20 6d 76 20 24 |t) then.| mv $|
|00004840| 66 69 6c 65 20 2f 74 6d | 70 2f 74 6d 68 73 74 61 |file /tm|p/tmhsta|
|00004850| 74 2e 24 24 0a 64 35 34 | 20 31 0a 61 35 34 20 31 |t.$$.d54| 1.a54 1|
|00004860| 0a 20 20 20 20 65 63 68 | 6f 20 22 53 74 61 74 75 |. ech|o "Statu|
|00004870| 73 3a 20 62 79 20 24 7b | 55 53 45 52 7d 20 60 64 |s: by ${|USER} `d|
|00004880| 61 74 65 60 22 20 3e 3e | 20 2f 74 6d 70 2f 74 6d |ate`" >>| /tmp/tm|
|00004890| 68 73 74 61 74 2e 24 24 | 0a 64 35 37 20 33 0a 61 |hstat.$$|.d57 3.a|
|000048a0| 35 39 20 33 0a 20 20 20 | 20 74 65 73 74 20 2d 78 |59 3. | test -x|
|000048b0| 20 24 7b 45 44 49 54 4f | 52 7d 20 3e 26 2f 64 65 | ${EDITO|R} >&/de|
|000048c0| 76 2f 6e 75 6c 6c 0a 20 | 20 20 20 69 66 20 28 24 |v/null. | if ($|
|000048d0| 73 74 61 74 75 73 20 3d | 3d 20 30 29 20 74 68 65 |status =|= 0) the|
|000048e0| 6e 0a 20 20 20 20 20 20 | 20 20 24 7b 64 65 64 69 |n. | ${dedi|
|000048f0| 74 6f 72 7d 20 2f 74 6d | 70 2f 74 6d 68 73 74 61 |tor} /tm|p/tmhsta|
|00004900| 74 2e 24 24 0a 64 36 31 | 20 31 0a 61 36 31 20 31 |t.$$.d61| 1.a61 1|
|00004910| 0a 20 20 20 20 20 20 20 | 20 24 7b 45 44 49 54 4f |. | ${EDITO|
|00004920| 52 7d 20 2f 74 6d 70 2f | 74 6d 68 73 74 61 74 2e |R} /tmp/|tmhstat.|
|00004930| 24 24 0a 64 36 33 20 31 | 30 0a 61 37 32 20 31 33 |$$.d63 1|0.a72 13|
|00004940| 0a 20 20 20 20 6d 76 20 | 2f 74 6d 70 2f 74 6d 68 |. mv |/tmp/tmh|
|00004950| 73 74 61 74 2e 24 24 20 | 24 66 69 6c 65 0a 65 6c |stat.$$ |$file.el|
|00004960| 73 65 0a 20 20 20 20 73 | 65 74 20 6d 79 66 6f 6c |se. s|et myfol|
|00004970| 64 65 72 20 3d 20 2b 60 | 77 68 6f 61 6d 69 60 0a |der = +`|whoami`.|
|00004980| 20 20 20 20 72 65 66 69 | 6c 65 20 24 6d 65 73 67 | refi|le $mesg|
|00004990| 20 2d 73 72 63 20 2b 24 | 46 4f 4c 44 45 52 20 24 | -src +$|FOLDER $|
|000049a0| 6d 79 66 6f 6c 64 65 72 | 0a 20 20 20 20 73 65 74 |myfolder|. set|
|000049b0| 20 6c 61 73 74 20 3d 20 | 60 70 69 63 6b 20 24 6d | last = |`pick $m|
|000049c0| 79 66 6f 6c 64 65 72 20 | 6c 61 73 74 60 0a 20 20 |yfolder |last`. |
|000049d0| 20 20 73 65 74 20 66 69 | 6c 65 20 3d 20 60 6d 68 | set fi|le = `mh|
|000049e0| 70 61 74 68 20 24 6d 79 | 66 6f 6c 64 65 72 20 24 |path $my|folder $|
|000049f0| 6c 61 73 74 60 0a 20 20 | 20 20 72 65 70 6c 20 24 |last`. | repl $|
|00004a00| 6d 79 66 6f 6c 64 65 72 | 20 24 6c 61 73 74 20 24 |myfolder| $last $|
|00004a10| 66 6f 72 6d 20 2d 65 64 | 69 74 6f 72 20 74 6d 68 |form -ed|itor tmh|
|00004a20| 65 64 69 74 0a 20 20 20 | 20 69 66 20 28 24 73 74 |edit. | if ($st|
|00004a30| 61 74 75 73 20 3d 3d 20 | 30 29 20 74 68 65 6e 0a |atus == |0) then.|
|00004a40| 09 61 6e 6e 6f 20 24 6c | 61 73 74 20 24 6d 79 66 |.anno $l|ast $myf|
|00004a50| 6f 6c 64 65 72 20 2d 63 | 6f 6d 70 6f 6e 65 6e 74 |older -c|omponent|
|00004a60| 20 55 73 65 72 41 63 6b | 65 64 20 2d 74 65 78 74 | UserAck|ed -text|
|00004a70| 20 22 62 79 20 24 7b 55 | 53 45 52 7d 22 0a 09 74 | "by ${U|SER}"..t|
|00004a80| 6d 68 61 70 70 65 6e 64 | 20 24 66 69 6c 65 09 0a |mhappend| $file..|
|00004a90| 09 72 65 66 69 6c 65 20 | 24 6c 61 73 74 20 2d 73 |.refile |$last -s|
|00004aa0| 72 63 20 24 6d 79 66 6f | 6c 64 65 72 20 2b 24 46 |rc $myfo|lder +$F|
|00004ab0| 4f 4c 44 45 52 0a 20 20 | 20 20 65 6c 73 65 0a 09 |OLDER. | else..|
|00004ac0| 72 65 66 69 6c 65 20 24 | 6c 61 73 74 20 2d 73 72 |refile $|last -sr|
|00004ad0| 63 20 24 6d 79 66 6f 6c | 64 65 72 20 2b 24 46 4f |c $myfol|der +$FO|
|00004ae0| 4c 44 45 52 0a 64 37 36 | 20 31 36 0a 40 0a 0a 0a |LDER.d76| 16.@...|
|00004af0| 31 2e 32 0a 6c 6f 67 0a | 40 66 69 78 20 70 72 6f |1.2.log.|@fix pro|
|00004b00| 62 6c 65 6d 20 77 69 74 | 68 20 68 61 76 69 6e 67 |blem wit|h having|
|00004b10| 20 61 20 2b 20 61 73 20 | 70 61 72 74 20 6f 66 20 | a + as |part of |
|00004b20| 74 68 65 20 66 6f 6c 64 | 65 72 20 6e 61 6d 65 0a |the fold|er name.|
|00004b30| 40 0a 74 65 78 74 0a 40 | 64 34 39 20 35 0a 61 35 |@.text.@|d49 5.a5|
|00004b40| 33 20 31 0a 20 20 20 20 | 2f 75 73 72 2f 6e 65 77 |3 1. |/usr/new|
|00004b50| 2f 6d 68 2f 72 65 70 6c | 20 24 6d 65 73 67 20 2b |/mh/repl| $mesg +|
|00004b60| 24 46 4f 4c 44 45 52 20 | 24 66 6f 72 6d 20 2d 65 |$FOLDER |$form -e|
|00004b70| 64 69 74 6f 72 20 74 6d | 68 65 64 69 74 0a 64 35 |ditor tm|hedit.d5|
|00004b80| 35 20 31 0a 61 35 35 20 | 31 0a 09 2f 75 73 72 2f |5 1.a55 |1../usr/|
|00004b90| 6e 65 77 2f 6d 68 2f 61 | 6e 6e 6f 20 24 6d 65 73 |new/mh/a|nno $mes|
|00004ba0| 67 20 2b 24 46 4f 4c 44 | 45 52 20 2d 63 6f 6d 70 |g +$FOLD|ER -comp|
|00004bb0| 6f 6e 65 6e 74 20 55 73 | 65 72 41 63 6b 65 64 20 |onent Us|erAcked |
|00004bc0| 2d 74 65 78 74 20 22 62 | 79 20 24 7b 55 53 45 52 |-text "b|y ${USER|
|00004bd0| 7d 22 0a 64 35 37 20 33 | 0a 40 0a 0a 0a 31 2e 31 |}".d57 3|.@...1.1|
|00004be0| 0a 6c 6f 67 0a 40 49 6e | 69 74 69 61 6c 20 72 65 |.log.@In|itial re|
|00004bf0| 76 69 73 69 6f 6e 0a 40 | 0a 74 65 78 74 0a 40 64 |vision.@|.text.@d|
|00004c00| 31 34 20 31 0a 61 31 34 | 20 31 0a 09 20 20 20 20 |14 1.a14| 1.. |
|00004c10| 73 65 74 20 46 4f 4c 44 | 45 52 20 3d 20 60 65 63 |set FOLD|ER = `ec|
|00004c20| 68 6f 20 24 73 74 72 69 | 6e 67 20 7c 20 61 77 6b |ho $stri|ng | awk|
|00004c30| 20 2d 46 2b 20 27 7b 20 | 70 72 69 6e 74 20 24 32 | -F+ '{ |print $2|
|00004c40| 20 7d 27 60 0a 40 0a 68 | 6f 20 27 20 20 20 20 67 | }'`.@.h|o ' g|
|00004c50| 6c 6f 6d 20 2d 68 5b 65 | 6c 70 5d 27 0a 09 65 63 |lom -h[e|lp]'..ec|
|00004c60| 68 6f 20 27 20 20 20 20 | 67 6c 6f 6d 20 5b 2b 66 |ho ' |glom [+f|
|00004c70| 6f 6c 64 65 72 5d 20 5b | 2d 61 5b 64 64 5d 5d 20 |older] [|-a[dd]] |
|00004c80| 6d 65 73 73 61 67 65 2d | 6c 69 73 74 27 0a 09 65 |message-|list'..e|
|00004c90| 78 69 74 28 31 29 0a 40 | 0a 0a 0a 31 2e 34 0a 6c |xit(1).@|...1.4.l|
|00004ca0| 6f 67 0a 40 73 79 6e 63 | 20 77 69 74 68 20 6f 75 |og.@sync| with ou|
|00004cb0| 72 73 0a 6d 69 6e 6f 72 | 20 73 70 61 63 69 6e 67 |rs.minor| spacing|
|00004cc0| 20 63 68 61 6e 67 65 0a | 40 0a 74 65 78 74 0a 40 | change.|@.text.@|
|00004cd0| 64 31 31 31 20 31 0a 61 | 31 31 31 20 31 0a 20 20 |d111 1.a|111 1. |
|00004ce0| 20 20 73 65 74 20 43 43 | 20 3d 20 28 60 73 63 61 | set CC| = (`sca|
|00004cf0| 6e 20 2b 24 46 4f 4c 44 | 45 52 20 24 47 4c 4f 4d |n +$FOLD|ER $GLOM|
|00004d00| 4d 53 47 20 2d 66 6f 72 | 6d 61 74 20 22 25 7b 63 |MSG -for|mat "%{c|
|00004d10| 63 7d 22 60 2c 20 29 0a | 40 0a 0a 0a 31 2e 33 0a |c}"`, ).|@...1.3.|
|00004d20| 6c 6f 67 0a 40 66 69 78 | 20 73 75 62 6a 65 63 74 |log.@fix| subject|
|00004d30| 20 77 69 74 68 20 2d 61 | 20 6f 70 74 69 6f 6e 0a | with -a| option.|
|00004d40| 40 0a 74 65 78 74 0a 40 | 64 31 39 20 31 0a 61 31 |@.text.@|d19 1.a1|
|00004d50| 39 20 31 0a 09 20 20 20 | 20 73 65 74 20 46 4f 4c |9 1.. | set FOL|
|00004d60| 44 45 52 20 3d 20 60 65 | 63 68 6f 20 24 73 74 72 |DER = `e|cho $str|
|00004d70| 69 6e 67 20 7c 20 73 65 | 64 20 2d 65 20 22 73 2f |ing | se|d -e "s/|
|00004d80| 5e 2b 2f 2f 22 60 0a 40 | 0a 0a 0a 31 2e 32 0a 6c |^+//"`.@|...1.2.l|
|00004d90| 6f 67 0a 40 66 69 78 20 | 70 72 6f 62 6c 65 6d 20 |og.@fix |problem |
|00004da0| 77 69 74 68 20 68 61 76 | 69 6e 67 20 61 20 2b 20 |with hav|ing a + |
|00004db0| 61 73 20 70 61 72 74 20 | 6f 66 20 74 68 65 20 66 |as part |of the f|
|00004dc0| 6f 6c 64 65 72 20 6e 61 | 6d 65 0a 40 0a 74 65 78 |older na|me.@.tex|
|00004dd0| 74 0a 40 64 31 31 32 20 | 31 0a 40 0a 0a 0a 31 2e |t.@d112 |1.@...1.|
|00004de0| 31 0a 6c 6f 67 0a 40 49 | 6e 69 74 69 61 6c 20 72 |1.log.@I|nitial r|
|00004df0| 65 76 69 73 69 6f 6e 0a | 40 0a 74 65 78 74 0a 40 |evision.|@.text.@|
|00004e00| 71 75 65 75 65 6d 68 2f | 62 69 6e 2f 67 6c 6f 6d |queuemh/|bin/glom|
|00004e10| 2e 6d 68 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.mh.....|........|
|00004e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e60| 00 00 00 00 20 20 20 34 | 30 30 20 00 20 32 36 34 |.... 4|00 . 264|
|00004e70| 33 31 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |31 . |12 . |
|00004e80| 20 20 31 31 31 31 37 20 | 20 35 30 32 36 32 31 35 | 11117 | 5026215|
|00004e90| 35 37 34 20 20 20 37 36 | 37 32 00 20 00 00 00 00 |574 76|72. ....|
|00004ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005000| 23 21 2f 62 69 6e 2f 63 | 73 68 20 2d 66 62 0a 0a |#!/bin/c|sh -fb..|
|00005010| 75 6d 61 73 6b 20 30 30 | 37 0a 73 65 74 20 70 61 |umask 00|7.set pa|
|00005020| 74 68 20 3d 20 28 2f 62 | 69 6e 20 2f 75 73 72 2f |th = (/b|in /usr/|
|00005030| 6e 65 77 2f 6d 68 29 0a | 0a 75 6e 73 65 74 65 6e |new/mh).|.unseten|
|00005040| 76 20 47 4c 4f 4d 4d 53 | 47 0a 75 6e 73 65 74 20 |v GLOMMS|G.unset |
|00005050| 47 4c 4f 4d 4d 53 47 0a | 75 6e 73 65 74 65 6e 76 |GLOMMSG.|unsetenv|
|00005060| 20 4d 53 47 53 0a 73 65 | 74 20 4d 53 47 53 0a 73 | MSGS.se|t MSGS.s|
|00005070| 65 74 20 41 44 44 20 3d | 20 30 0a 0a 66 6f 72 65 |et ADD =| 0..fore|
|00005080| 61 63 68 20 73 74 72 69 | 6e 67 20 28 24 61 72 67 |ach stri|ng ($arg|
|00005090| 76 29 0a 20 20 20 20 73 | 77 69 74 63 68 20 28 24 |v). s|witch ($|
|000050a0| 73 74 72 69 6e 67 29 0a | 09 63 61 73 65 20 22 2d |string).|.case "-|
|000050b0| 61 22 3a 0a 09 63 61 73 | 65 20 22 2d 61 64 64 22 |a":..cas|e "-add"|
|000050c0| 3a 0a 09 09 73 65 74 20 | 41 44 44 20 3d 20 31 0a |:...set |ADD = 1.|
|000050d0| 09 09 62 72 65 61 6b 73 | 77 0a 09 63 61 73 65 20 |..breaks|w..case |
|000050e0| 22 2b 2a 22 3a 0a 09 09 | 73 65 74 20 46 4f 4c 44 |"+*":...|set FOLD|
|000050f0| 45 52 20 3d 20 60 65 63 | 68 6f 20 24 73 74 72 69 |ER = `ec|ho $stri|
|00005100| 6e 67 20 7c 20 73 65 64 | 20 2d 65 20 73 2f 5e 2b |ng | sed| -e s/^+|
|00005110| 2f 2f 60 0a 09 20 20 20 | 20 62 72 65 61 6b 73 77 |//`.. | breaksw|
|00005120| 0a 09 63 61 73 65 20 22 | 5b 30 2d 39 5d 2a 22 3a |..case "|[0-9]*":|
|00005130| 0a 09 09 69 66 20 28 24 | 3f 47 4c 4f 4d 4d 53 47 |...if ($|?GLOMMSG|
|00005140| 20 3d 3d 20 30 29 20 74 | 68 65 6e 0a 09 09 09 73 | == 0) t|hen....s|
|00005150| 65 74 20 47 4c 4f 4d 4d | 53 47 20 3d 20 24 73 74 |et GLOMM|SG = $st|
|00005160| 72 69 6e 67 0a 09 09 65 | 6c 73 65 0a 09 09 09 73 |ring...e|lse....s|
|00005170| 65 74 20 4d 53 47 53 20 | 3d 20 28 24 4d 53 47 53 |et MSGS |= ($MSGS|
|00005180| 20 24 73 74 72 69 6e 67 | 29 0a 09 09 65 6e 64 69 | $string|)...endi|
|00005190| 66 0a 09 20 20 20 20 62 | 72 65 61 6b 73 77 0a 09 |f.. b|reaksw..|
|000051a0| 63 61 73 65 20 22 2d 68 | 22 3a 0a 09 63 61 73 65 |case "-h|":..case|
|000051b0| 20 22 2d 68 65 6c 70 22 | 3a 0a 09 64 65 66 61 75 | "-help"|:..defau|
|000051c0| 6c 74 3a 0a 09 09 67 6f | 74 6f 20 55 53 41 47 45 |lt:...go|to USAGE|
|000051d0| 0a 20 20 20 20 65 6e 64 | 73 77 0a 65 6e 64 0a 0a |. end|sw.end..|
|000051e0| 69 66 20 28 24 3f 46 4f | 4c 44 45 52 20 3d 3d 20 |if ($?FO|LDER == |
|000051f0| 30 29 20 74 68 65 6e 0a | 09 73 65 74 20 46 4f 4c |0) then.|.set FOL|
|00005200| 44 45 52 20 3d 20 60 66 | 6f 6c 64 65 72 20 2d 66 |DER = `f|older -f|
|00005210| 61 73 74 60 0a 65 6e 64 | 69 66 0a 0a 69 66 20 28 |ast`.end|if..if (|
|00005220| 24 3f 47 4c 4f 4d 4d 53 | 47 20 3d 3d 20 30 29 20 |$?GLOMMS|G == 0) |
|00005230| 67 6f 74 6f 20 55 53 41 | 47 45 0a 0a 73 65 74 20 |goto USA|GE..set |
|00005240| 47 4c 4f 4d 4d 53 47 20 | 3d 20 60 70 69 63 6b 20 |GLOMMSG |= `pick |
|00005250| 2b 24 46 4f 4c 44 45 52 | 20 24 47 4c 4f 4d 4d 53 |+$FOLDER| $GLOMMS|
|00005260| 47 60 0a 69 66 20 28 24 | 73 74 61 74 75 73 29 20 |G`.if ($|status) |
|00005270| 74 68 65 6e 0a 09 65 63 | 68 6f 20 67 6c 6f 6d 3a |then..ec|ho glom:|
|00005280| 20 66 69 72 73 74 20 6d | 65 73 73 61 67 65 20 69 | first m|essage i|
|00005290| 73 20 69 6e 76 61 6c 69 | 64 0a 09 65 78 69 74 28 |s invali|d..exit(|
|000052a0| 31 29 0a 65 6e 64 69 66 | 0a 0a 69 66 20 28 24 23 |1).endif|..if ($#|
|000052b0| 47 4c 4f 4d 4d 53 47 20 | 3e 20 31 29 20 74 68 65 |GLOMMSG |> 1) the|
|000052c0| 6e 0a 09 73 65 74 20 4d | 53 47 53 20 3d 20 28 24 |n..set M|SGS = ($|
|000052d0| 47 4c 4f 4d 4d 53 47 5b | 32 2d 5d 20 24 4d 53 47 |GLOMMSG[|2-] $MSG|
|000052e0| 53 29 0a 09 73 65 74 20 | 47 4c 4f 4d 4d 53 47 20 |S)..set |GLOMMSG |
|000052f0| 3d 20 24 47 4c 4f 4d 4d | 53 47 5b 31 5d 0a 65 6e |= $GLOMM|SG[1].en|
|00005300| 64 69 66 0a 0a 23 20 74 | 68 69 73 20 70 75 74 73 |dif..# t|his puts|
|00005310| 20 74 68 65 20 6d 65 73 | 73 61 67 65 73 20 69 6e | the mes|sages in|
|00005320| 20 6e 75 6d 65 72 69 63 | 61 6c 20 6f 72 64 65 72 | numeric|al order|
|00005330| 2c 20 74 68 72 6f 77 69 | 6e 67 20 6f 75 74 20 69 |, throwi|ng out i|
|00005340| 6e 76 61 6c 69 64 0a 23 | 20 6d 65 73 73 61 67 65 |nvalid.#| message|
|00005350| 20 6e 75 6d 62 65 72 73 | 0a 69 66 20 28 24 41 44 | numbers|.if ($AD|
|00005360| 44 20 21 3d 20 31 29 20 | 74 68 65 6e 0a 09 73 65 |D != 1) |then..se|
|00005370| 74 20 4d 53 47 53 20 3d | 20 60 70 69 63 6b 20 2b |t MSGS =| `pick +|
|00005380| 24 46 4f 4c 44 45 52 20 | 24 47 4c 4f 4d 4d 53 47 |$FOLDER |$GLOMMSG|
|00005390| 20 24 4d 53 47 53 60 0a | 09 69 66 20 28 24 73 74 | $MSGS`.|.if ($st|
|000053a0| 61 74 75 73 29 20 74 68 | 65 6e 0a 09 09 65 63 68 |atus) th|en...ech|
|000053b0| 6f 20 67 6c 6f 6d 3a 20 | 69 6e 76 61 6c 69 64 20 |o glom: |invalid |
|000053c0| 6d 65 73 73 61 67 65 20 | 69 6e 20 6c 69 73 74 0a |message |in list.|
|000053d0| 09 09 65 78 69 74 28 31 | 29 0a 09 65 6e 64 69 66 |..exit(1|)..endif|
|000053e0| 0a 65 6c 73 65 0a 09 73 | 65 74 20 4d 53 47 53 20 |.else..s|et MSGS |
|000053f0| 3d 20 60 70 69 63 6b 20 | 2b 24 46 4f 4c 44 45 52 |= `pick |+$FOLDER|
|00005400| 20 24 4d 53 47 53 60 0a | 09 69 66 20 28 24 73 74 | $MSGS`.|.if ($st|
|00005410| 61 74 75 73 29 20 74 68 | 65 6e 0a 09 09 65 63 68 |atus) th|en...ech|
|00005420| 6f 20 67 6c 6f 6d 3a 20 | 69 6e 76 61 6c 69 64 20 |o glom: |invalid |
|00005430| 6d 65 73 73 61 67 65 20 | 69 6e 20 6c 69 73 74 0a |message |in list.|
|00005440| 09 09 65 78 69 74 28 31 | 29 0a 09 65 6e 64 69 66 |..exit(1|)..endif|
|00005450| 0a 65 6e 64 69 66 0a 0a | 73 65 74 20 50 49 44 20 |.endif..|set PID |
|00005460| 20 20 20 20 20 3d 20 24 | 24 0a 73 65 74 20 4d 48 | = $|$.set MH|
|00005470| 50 41 54 48 20 20 20 3d | 20 60 6d 68 70 61 74 68 |PATH =| `mhpath|
|00005480| 20 2b 24 46 4f 4c 44 45 | 52 60 0a 73 65 74 20 54 | +$FOLDE|R`.set T|
|00005490| 4d 50 46 49 4c 45 20 20 | 3d 20 2f 74 6d 70 2f 67 |MPFILE |= /tmp/g|
|000054a0| 6c 6f 6d 6d 73 67 2e 24 | 50 49 44 0a 73 65 74 20 |lommsg.$|PID.set |
|000054b0| 42 4f 44 59 46 4f 52 4d | 20 3d 20 7e 24 46 4f 4c |BODYFORM| = ~$FOL|
|000054c0| 44 45 52 2f 4d 61 69 6c | 2f 67 6c 6f 6d 2e 62 6f |DER/Mail|/glom.bo|
|000054d0| 64 79 2e 66 6f 72 6d 61 | 74 0a 73 65 74 20 54 4f |dy.forma|t.set TO|
|000054e0| 20 20 20 20 20 20 20 3d | 20 24 46 4f 4c 44 45 52 | =| $FOLDER|
|000054f0| 0a 73 65 74 20 46 52 4f | 4d 20 20 20 20 20 3d 20 |.set FRO|M = |
|00005500| 24 55 53 45 52 0a 73 65 | 74 20 44 41 54 45 20 20 |$USER.se|t DATE |
|00005510| 20 20 20 3d 20 60 64 61 | 74 65 60 0a 73 65 74 20 | = `da|te`.set |
|00005520| 53 55 42 4a 45 43 54 0a | 73 65 74 20 43 43 0a 0a |SUBJECT.|set CC..|
|00005530| 69 66 20 28 24 41 44 44 | 29 20 74 68 65 6e 0a 20 |if ($ADD|) then. |
|00005540| 20 20 20 23 20 4d 61 6b | 65 20 73 75 72 65 20 67 | # Mak|e sure g|
|00005550| 6c 6f 6d 20 6d 65 73 73 | 61 67 65 20 69 73 20 76 |lom mess|age is v|
|00005560| 61 6c 69 64 0a 20 20 20 | 20 73 65 74 20 68 69 74 |alid. | set hit|
|00005570| 73 20 3d 20 60 70 69 63 | 6b 20 2b 24 46 4f 4c 44 |s = `pic|k +$FOLD|
|00005580| 45 52 20 2d 6e 6f 70 75 | 62 6c 69 63 20 2d 73 65 |ER -nopu|blic -se|
|00005590| 71 20 67 6c 6f 6d 20 24 | 47 4c 4f 4d 4d 53 47 20 |q glom $|GLOMMSG |
|000055a0| 7c 26 20 63 61 74 60 0a | 20 20 20 20 69 66 20 28 ||& cat`.| if (|
|000055b0| 22 24 68 69 74 73 22 20 | 3d 3d 20 22 70 69 63 6b |"$hits" |== "pick|
|000055c0| 3a 22 29 20 74 68 65 6e | 0a 20 20 20 20 20 20 20 |:") then|. |
|000055d0| 20 65 63 68 6f 20 67 6c | 6f 6d 3a 20 62 61 64 20 | echo gl|om: bad |
|000055e0| 67 6c 6f 6d 2d 6d 65 73 | 73 61 67 65 0a 20 20 20 |glom-mes|sage. |
|000055f0| 20 20 20 20 20 65 78 69 | 74 28 31 29 0a 20 20 20 | exi|t(1). |
|00005600| 20 65 6e 64 69 66 0a 20 | 20 20 20 69 66 20 28 22 | endif. | if ("|
|00005610| 24 68 69 74 73 22 20 21 | 3d 20 22 31 20 68 69 74 |$hits" !|= "1 hit|
|00005620| 22 29 20 74 68 65 6e 0a | 20 20 20 20 20 20 20 20 |") then.| |
|00005630| 65 63 68 6f 20 67 6c 6f | 6d 3a 20 63 61 6e 20 6f |echo glo|m: can o|
|00005640| 6e 6c 79 20 61 64 64 20 | 74 6f 20 6f 6e 65 20 67 |nly add |to one g|
|00005650| 6c 6f 6d 2d 6d 65 73 73 | 61 67 65 0a 20 20 20 20 |lom-mess|age. |
|00005660| 20 20 20 20 65 78 69 74 | 28 31 29 0a 20 20 20 20 | exit|(1). |
|00005670| 65 6e 64 69 66 0a 20 20 | 20 20 23 20 4d 61 6b 65 |endif. | # Make|
|00005680| 20 73 75 72 65 20 77 65 | 20 61 72 65 20 61 64 64 | sure we| are add|
|00005690| 69 6e 67 20 74 6f 20 70 | 72 65 76 69 6f 75 73 6c |ing to p|reviousl|
|000056a0| 79 20 67 6c 6f 6d 6d 65 | 64 20 6d 65 73 73 61 67 |y glomme|d messag|
|000056b0| 65 0a 20 20 20 20 23 20 | 53 65 65 20 63 72 65 61 |e. # |See crea|
|000056c0| 74 69 6f 6e 20 6f 66 20 | 6d 65 73 73 61 67 65 20 |tion of |message |
|000056d0| 62 65 6c 6f 77 20 61 6e | 64 20 6e 6f 74 69 63 65 |below an|d notice|
|000056e0| 20 74 68 61 74 20 61 20 | 67 6c 6f 6d 3a 0a 20 20 | that a |glom:. |
|000056f0| 20 20 23 20 66 69 65 6c | 64 20 69 73 20 61 64 64 | # fiel|d is add|
|00005700| 65 64 20 66 6f 72 20 74 | 68 69 73 20 70 75 72 70 |ed for t|his purp|
|00005710| 6f 73 65 2e 0a 20 20 20 | 20 73 65 74 20 54 45 4d |ose.. | set TEM|
|00005720| 50 56 41 52 20 3d 20 60 | 73 63 61 6e 20 2b 24 46 |PVAR = `|scan +$F|
|00005730| 4f 4c 44 45 52 20 24 47 | 4c 4f 4d 4d 53 47 20 2d |OLDER $G|LOMMSG -|
|00005740| 66 6f 72 6d 61 74 20 22 | 25 7b 67 6c 6f 6d 7d 22 |format "|%{glom}"|
|00005750| 60 0a 20 20 20 20 69 66 | 20 28 22 24 54 45 4d 50 |`. if| ("$TEMP|
|00005760| 56 41 52 22 20 3d 3d 20 | 22 22 29 20 74 68 65 6e |VAR" == |"") then|
|00005770| 0a 20 20 20 20 20 20 20 | 20 65 63 68 6f 20 67 6c |. | echo gl|
|00005780| 6f 6d 3a 20 63 61 6e 5c | 27 74 20 61 64 64 20 74 |om: can\|'t add t|
|00005790| 6f 20 61 20 6e 6f 6e 2d | 67 6c 6f 6d 6d 65 64 20 |o a non-|glommed |
|000057a0| 6d 65 73 73 61 67 65 0a | 20 20 20 20 20 20 20 20 |message.| |
|000057b0| 65 78 69 74 28 31 29 0a | 20 20 20 20 65 6e 64 69 |exit(1).| endi|
|000057c0| 66 0a 65 6e 64 69 66 0a | 0a 73 65 74 20 68 69 74 |f.endif.|.set hit|
|000057d0| 73 20 3d 20 60 70 69 63 | 6b 20 2b 24 46 4f 4c 44 |s = `pic|k +$FOLD|
|000057e0| 45 52 20 2d 6e 6f 70 75 | 62 6c 69 63 20 2d 73 65 |ER -nopu|blic -se|
|000057f0| 71 20 67 6c 6f 6d 20 24 | 4d 53 47 53 20 7c 26 20 |q glom $|MSGS |& |
|00005800| 63 61 74 60 0a 69 66 20 | 28 22 24 68 69 74 73 5b |cat`.if |("$hits[|
|00005810| 31 5d 22 20 3d 3d 20 22 | 70 69 63 6b 3a 22 29 20 |1]" == "|pick:") |
|00005820| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 67 6c |then. | echo gl|
|00005830| 6f 6d 3a 20 62 61 64 20 | 6d 65 73 73 61 67 65 20 |om: bad |message |
|00005840| 6c 69 73 74 0a 20 20 20 | 20 65 78 69 74 28 31 29 |list. | exit(1)|
|00005850| 0a 65 6e 64 69 66 0a 0a | 69 66 20 28 28 24 41 44 |.endif..|if (($AD|
|00005860| 44 20 21 3d 20 31 29 20 | 26 26 20 28 22 24 68 69 |D != 1) |&& ("$hi|
|00005870| 74 73 22 20 3d 3d 20 22 | 31 20 68 69 74 22 29 29 |ts" == "|1 hit"))|
|00005880| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 67 | then. | echo g|
|00005890| 6c 6f 6d 3a 20 63 61 6e | 5c 27 74 20 67 6c 6f 6d |lom: can|\'t glom|
|000058a0| 20 77 69 74 68 20 6f 6e | 6c 79 20 6f 6e 65 20 6d | with on|ly one m|
|000058b0| 65 73 73 61 67 65 0a 20 | 20 20 20 65 78 69 74 28 |essage. | exit(|
|000058c0| 31 29 0a 65 6e 64 69 66 | 0a 0a 69 66 20 28 24 41 |1).endif|..if ($A|
|000058d0| 44 44 29 20 74 68 65 6e | 0a 20 20 20 20 73 65 74 |DD) then|. set|
|000058e0| 20 43 43 20 3d 20 28 60 | 73 63 61 6e 20 2b 24 46 | CC = (`|scan +$F|
|000058f0| 4f 4c 44 45 52 20 24 47 | 4c 4f 4d 4d 53 47 20 2d |OLDER $G|LOMMSG -|
|00005900| 77 69 64 74 68 20 35 31 | 32 20 2d 66 6f 72 6d 61 |width 51|2 -forma|
|00005910| 74 20 22 25 7b 63 63 7d | 22 60 2c 20 29 0a 20 20 |t "%{cc}|"`, ). |
|00005920| 20 20 73 65 74 20 53 55 | 42 4a 45 43 54 20 3d 20 | set SU|BJECT = |
|00005930| 60 73 63 61 6e 20 2b 24 | 46 4f 4c 44 45 52 20 24 |`scan +$|FOLDER $|
|00005940| 47 4c 4f 4d 4d 53 47 20 | 2d 66 6f 72 6d 61 74 20 |GLOMMSG |-format |
|00005950| 22 25 7b 73 75 62 6a 65 | 63 74 7d 22 60 0a 65 6c |"%{subje|ct}"`.el|
|00005960| 73 65 0a 20 20 20 20 23 | 20 73 75 62 6a 65 63 74 |se. #| subject|
|00005970| 20 69 73 20 65 6e 74 65 | 72 65 64 20 6f 6e 20 61 | is ente|red on a|
|00005980| 6e 20 6f 72 69 67 69 6e | 61 6c 20 67 6c 6f 6d 2c |n origin|al glom,|
|00005990| 20 62 75 74 20 6e 6f 74 | 20 77 68 65 6e 0a 20 20 | but not| when. |
|000059a0| 20 20 23 20 73 6f 6d 65 | 6f 6e 65 20 69 73 20 75 | # some|one is u|
|000059b0| 73 69 6e 67 20 67 6c 6f | 6d 20 2d 61 5b 64 64 5d |sing glo|m -a[dd]|
|000059c0| 0a 20 20 20 20 65 63 68 | 6f 20 45 6e 74 65 72 20 |. ech|o Enter |
|000059d0| 6f 76 65 72 61 6c 6c 20 | 73 75 62 6a 65 63 74 2c |overall |subject,|
|000059e0| 20 66 69 6e 69 73 68 20 | 77 69 74 68 20 5e 44 20 | finish |with ^D |
|000059f0| 6f 6e 20 6c 69 6e 65 20 | 62 79 20 69 74 73 65 6c |on line |by itsel|
|00005a00| 66 3a 0a 20 20 20 20 73 | 65 74 20 53 55 42 4a 45 |f:. s|et SUBJE|
|00005a10| 43 54 20 3d 20 60 63 61 | 74 60 0a 20 20 20 20 65 |CT = `ca|t`. e|
|00005a20| 63 68 6f 20 77 61 69 74 | 2e 2e 0a 65 6e 64 69 66 |cho wait|...endif|
|00005a30| 0a 0a 23 20 66 72 6f 6d | 20 65 61 63 68 20 6d 65 |..# from| each me|
|00005a40| 73 73 61 67 65 2c 20 74 | 68 65 20 7b 63 63 7d 20 |ssage, t|he {cc} |
|00005a50| 61 6e 64 20 7b 66 72 6f | 6d 7d 20 66 69 65 6c 64 |and {fro|m} field|
|00005a60| 73 20 61 72 65 20 70 75 | 6c 6c 65 64 0a 23 20 6f |s are pu|lled.# o|
|00005a70| 75 74 20 61 6e 64 20 73 | 74 75 63 6b 20 74 6f 67 |ut and s|tuck tog|
|00005a80| 65 74 68 65 72 2c 20 73 | 65 70 61 72 61 74 65 64 |ether, s|eparated|
|00005a90| 20 62 79 20 63 6f 6d 6d | 61 73 0a 66 6f 72 65 61 | by comm|as.forea|
|00005aa0| 63 68 20 6d 73 67 28 24 | 4d 53 47 53 29 0a 20 20 |ch msg($|MSGS). |
|00005ab0| 20 20 23 20 43 20 61 6e | 64 20 46 20 61 72 65 20 | # C an|d F are |
|00005ac0| 75 73 65 64 20 73 6f 20 | 74 68 61 74 20 65 78 74 |used so |that ext|
|00005ad0| 72 61 20 63 6f 6d 6d 61 | 73 20 61 72 65 20 6e 6f |ra comma|s are no|
|00005ae0| 74 20 70 72 65 73 65 6e | 74 0a 20 20 20 20 23 20 |t presen|t. # |
|00005af0| 74 68 69 73 20 69 73 20 | 6e 6f 74 20 6e 65 63 65 |this is |not nece|
|00005b00| 73 73 61 72 79 2c 20 69 | 74 20 6a 75 73 74 20 6c |ssary, i|t just l|
|00005b10| 6f 6f 6b 73 20 6e 69 63 | 65 72 0a 20 20 20 20 73 |ooks nic|er. s|
|00005b20| 65 74 20 43 20 3d 20 60 | 73 63 61 6e 20 2b 24 46 |et C = `|scan +$F|
|00005b30| 4f 4c 44 45 52 20 24 6d | 73 67 20 2d 66 6f 72 6d |OLDER $m|sg -form|
|00005b40| 61 74 20 22 25 7b 63 63 | 7d 22 60 0a 20 20 20 20 |at "%{cc|}"`. |
|00005b50| 73 65 74 20 46 20 3d 20 | 60 73 63 61 6e 20 2b 24 |set F = |`scan +$|
|00005b60| 46 4f 4c 44 45 52 20 24 | 6d 73 67 20 2d 66 6f 72 |FOLDER $|msg -for|
|00005b70| 6d 61 74 20 22 25 7b 66 | 72 6f 6d 7d 22 60 0a 20 |mat "%{f|rom}"`. |
|00005b80| 20 20 20 69 66 20 28 22 | 24 43 22 20 21 3d 20 22 | if ("|$C" != "|
|00005b90| 22 29 20 74 68 65 6e 0a | 20 20 20 20 20 20 20 20 |") then.| |
|00005ba0| 69 66 20 28 22 24 46 22 | 20 21 3d 20 22 22 29 20 |if ("$F"| != "") |
|00005bb0| 74 68 65 6e 0a 20 20 20 | 20 20 20 20 20 20 20 20 |then. | |
|00005bc0| 20 73 65 74 20 43 43 20 | 3d 20 28 24 7b 43 43 7d | set CC |= (${CC}|
|00005bd0| 24 7b 43 7d 2c 20 24 7b | 46 7d 29 0a 20 20 20 20 |${C}, ${|F}). |
|00005be0| 20 20 20 20 65 6e 64 69 | 66 0a 20 20 20 20 65 6c | endi|f. el|
|00005bf0| 73 65 0a 20 20 20 20 20 | 20 20 20 69 66 20 28 22 |se. | if ("|
|00005c00| 24 46 22 20 21 3d 20 22 | 22 29 20 74 68 65 6e 0a |$F" != "|") then.|
|00005c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 73 65 74 20 | | set |
|00005c20| 43 43 20 3d 20 22 24 7b | 43 43 7d 24 7b 46 7d 22 |CC = "${|CC}${F}"|
|00005c30| 20 0a 20 20 20 20 20 20 | 20 20 65 6e 64 69 66 0a | . | endif.|
|00005c40| 20 20 20 20 65 6e 64 69 | 66 0a 20 20 20 20 69 66 | endi|f. if|
|00005c50| 20 28 24 6d 73 67 20 21 | 3d 20 24 4d 53 47 53 5b | ($msg !|= $MSGS[|
|00005c60| 24 23 4d 53 47 53 5d 29 | 20 73 65 74 20 43 43 20 |$#MSGS])| set CC |
|00005c70| 3d 20 22 24 7b 43 43 7d | 2c 20 22 0a 65 6e 64 0a |= "${CC}|, ".end.|
|00005c80| 0a 23 20 54 68 65 20 6d | 65 73 73 61 67 65 20 69 |.# The m|essage i|
|00005c90| 73 20 63 72 65 61 74 65 | 64 20 69 6e 20 27 24 54 |s create|d in '$T|
|00005ca0| 4d 50 46 49 4c 45 27 2c | 20 74 68 65 6e 20 63 6f |MPFILE',| then co|
|00005cb0| 70 69 65 64 20 74 6f 20 | 74 68 65 0a 23 20 6c 6f |pied to |the.# lo|
|00005cc0| 77 65 73 74 20 6e 75 6d | 62 65 72 65 64 20 6d 65 |west num|bered me|
|00005cd0| 73 73 61 67 65 20 66 72 | 6f 6d 20 6d 65 73 73 61 |ssage fr|om messa|
|00005ce0| 67 65 2d 6c 69 73 74 2e | 20 4f 52 2c 20 69 6e 20 |ge-list.| OR, in |
|00005cf0| 74 68 65 20 63 61 73 65 | 0a 23 20 6f 66 20 74 68 |the case|.# of th|
|00005d00| 65 20 2d 61 5b 64 64 5d | 20 6f 70 74 69 6f 6e 2c |e -a[dd]| option,|
|00005d10| 20 74 68 65 20 6d 65 73 | 73 61 67 65 20 69 73 20 | the mes|sage is |
|00005d20| 70 75 74 20 69 6e 74 6f | 0a 23 20 67 6c 6f 6d 6d |put into|.# glomm|
|00005d30| 65 64 2d 6d 65 73 73 61 | 67 65 0a 65 63 68 6f 20 |ed-messa|ge.echo |
|00005d40| 22 3e 46 72 6f 6d 20 24 | 46 52 4f 4d 20 20 24 44 |">From $|FROM $D|
|00005d50| 41 54 45 22 20 20 20 20 | 20 20 20 20 20 20 20 20 |ATE" | |
|00005d60| 3e 3e 20 24 54 4d 50 46 | 49 4c 45 0a 65 63 68 6f |>> $TMPF|ILE.echo|
|00005d70| 20 22 44 61 74 65 3a 20 | 24 44 41 54 45 22 20 20 | "Date: |$DATE" |
|00005d80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005d90| 20 20 3e 3e 20 24 54 4d | 50 46 49 4c 45 0a 65 63 | >> $TM|PFILE.ec|
|00005da0| 68 6f 20 22 46 72 6f 6d | 3a 20 24 46 52 4f 4d 22 |ho "From|: $FROM"|
|00005db0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005dc0| 20 20 20 20 3e 3e 20 24 | 54 4d 50 46 49 4c 45 0a | >> $|TMPFILE.|
|00005dd0| 65 63 68 6f 20 22 43 63 | 3a 20 24 43 43 22 20 20 |echo "Cc|: $CC" |
|00005de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005df0| 20 20 20 20 20 20 3e 3e | 20 24 54 4d 50 46 49 4c | >>| $TMPFIL|
|00005e00| 45 0a 65 63 68 6f 20 22 | 54 6f 3a 20 20 20 24 54 |E.echo "|To: $T|
|00005e10| 4f 22 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |O" | |
|00005e20| 20 20 20 20 20 20 20 20 | 3e 3e 20 24 54 4d 50 46 | |>> $TMPF|
|00005e30| 49 4c 45 0a 65 63 68 6f | 20 22 53 75 62 6a 65 63 |ILE.echo| "Subjec|
|00005e40| 74 3a 20 24 53 55 42 4a | 45 43 54 22 20 20 20 20 |t: $SUBJ|ECT" |
|00005e50| 20 20 20 20 20 20 20 20 | 20 20 3e 3e 20 24 54 4d | | >> $TM|
|00005e60| 50 46 49 4c 45 0a 65 63 | 68 6f 20 27 27 20 20 20 |PFILE.ec|ho '' |
|00005e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005e80| 20 20 20 20 20 20 20 20 | 20 20 3e 3e 20 24 54 4d | | >> $TM|
|00005e90| 50 46 49 4c 45 0a 0a 23 | 20 69 66 20 61 64 64 69 |PFILE..#| if addi|
|00005ea0| 6e 67 20 74 6f 20 61 20 | 67 6c 6f 6d 6d 65 64 2d |ng to a |glommed-|
|00005eb0| 6d 65 73 73 61 67 65 2c | 20 67 72 61 62 20 74 68 |message,| grab th|
|00005ec0| 65 20 62 6f 64 79 20 66 | 72 6f 6d 0a 23 20 67 6c |e body f|rom.# gl|
|00005ed0| 6f 6d 6d 65 64 2d 6d 65 | 73 73 61 67 65 0a 69 66 |ommed-me|ssage.if|
|00005ee0| 20 28 24 41 44 44 29 20 | 74 68 65 6e 0a 20 20 20 | ($ADD) |then. |
|00005ef0| 20 73 68 6f 77 20 2b 24 | 46 4f 4c 44 45 52 20 24 | show +$|FOLDER $|
|00005f00| 47 4c 4f 4d 4d 53 47 20 | 2d 66 6f 72 6d 20 24 42 |GLOMMSG |-form $B|
|00005f10| 4f 44 59 46 4f 52 4d 20 | 20 20 3e 3e 20 24 54 4d |ODYFORM | >> $TM|
|00005f20| 50 46 49 4c 45 0a 20 20 | 20 20 65 63 68 6f 20 5c |PFILE. | echo \|
|00005f30| 3e 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |> | |
|00005f40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005f50| 20 20 20 3e 3e 20 24 54 | 4d 50 46 49 4c 45 0a 20 | >> $T|MPFILE. |
|00005f60| 20 20 20 65 63 68 6f 20 | 5c 3e 20 20 20 20 20 20 | echo |\> |
|00005f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 3e 3e 20 24 | | >> $|
|00005f90| 54 4d 50 46 49 4c 45 0a | 20 20 20 20 65 63 68 6f |TMPFILE.| echo|
|00005fa0| 20 5c 3e 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | \> | |
|00005fb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005fc0| 20 20 20 20 20 3e 3e 20 | 24 54 4d 50 46 49 4c 45 | >> |$TMPFILE|
|00005fd0| 0a 65 6e 64 69 66 0a 0a | 23 20 70 75 74 20 61 20 |.endif..|# put a |
|00005fe0| 22 3e 22 20 69 6e 20 66 | 72 6f 6e 74 20 6f 66 20 |">" in f|ront of |
|00005ff0| 65 61 63 68 20 6c 69 6e | 65 0a 73 68 6f 77 20 2b |each lin|e.show +|
|00006000| 24 46 4f 4c 44 45 52 20 | 24 4d 53 47 53 20 7c 20 |$FOLDER |$MSGS | |
|00006010| 61 77 6b 20 27 7b 70 72 | 69 6e 74 20 22 3e 20 22 |awk '{pr|int "> "|
|00006020| 20 24 30 7d 27 20 20 20 | 3e 3e 20 24 54 4d 50 46 | $0}' |>> $TMPF|
|00006030| 49 4c 45 0a 72 6d 6d 20 | 2b 24 46 4f 4c 44 45 52 |ILE.rmm |+$FOLDER|
|00006040| 20 24 4d 53 47 53 0a 0a | 69 66 20 28 24 41 44 44 | $MSGS..|if ($ADD|
|00006050| 29 20 74 68 65 6e 0a 20 | 20 20 20 63 70 20 24 54 |) then. | cp $T|
|00006060| 4d 50 46 49 4c 45 20 24 | 4d 48 50 41 54 48 2f 24 |MPFILE $|MHPATH/$|
|00006070| 47 4c 4f 4d 4d 53 47 0a | 20 20 20 20 61 6e 6e 6f |GLOMMSG.| anno|
|00006080| 20 2b 24 46 4f 4c 44 45 | 52 20 24 47 4c 4f 4d 4d | +$FOLDE|R $GLOMM|
|00006090| 53 47 20 2d 63 6f 6d 70 | 6f 6e 65 6e 74 20 67 6c |SG -comp|onent gl|
|000060a0| 6f 6d 20 2d 74 65 78 74 | 20 22 4d 75 6c 74 69 70 |om -text| "Multip|
|000060b0| 6c 65 20 6d 65 73 73 61 | 67 65 73 20 66 6f 6c 6c |le messa|ges foll|
|000060c0| 6f 77 22 0a 09 69 66 20 | 28 22 60 67 72 65 70 20 |ow"..if |("`grep |
|000060d0| 5e 24 46 4f 4c 44 45 52 | 20 2f 65 74 63 2f 67 72 |^$FOLDER| /etc/gr|
|000060e0| 6f 75 70 60 22 20 21 3d | 20 22 22 29 20 63 68 67 |oup`" !=| "") chg|
|000060f0| 72 70 20 24 46 4f 4c 44 | 45 52 20 24 4d 48 50 41 |rp $FOLD|ER $MHPA|
|00006100| 54 48 2f 24 47 4c 4f 4d | 4d 53 47 0a 65 6c 73 65 |TH/$GLOM|MSG.else|
|00006110| 0a 20 20 20 20 63 70 20 | 24 54 4d 50 46 49 4c 45 |. cp |$TMPFILE|
|00006120| 20 24 4d 48 50 41 54 48 | 2f 24 4d 53 47 53 5b 31 | $MHPATH|/$MSGS[1|
|00006130| 5d 0a 20 20 20 20 61 6e | 6e 6f 20 2b 24 46 4f 4c |]. an|no +$FOL|
|00006140| 44 45 52 20 24 4d 53 47 | 53 5b 31 5d 20 2d 63 6f |DER $MSG|S[1] -co|
|00006150| 6d 70 6f 6e 65 6e 74 20 | 67 6c 6f 6d 20 2d 74 65 |mponent |glom -te|
|00006160| 78 74 20 22 4d 75 6c 74 | 69 70 6c 65 20 6d 65 73 |xt "Mult|iple mes|
|00006170| 73 61 67 65 73 20 66 6f | 6c 6c 6f 77 22 0a 09 69 |sages fo|llow"..i|
|00006180| 66 20 28 22 60 67 72 65 | 70 20 5e 24 46 4f 4c 44 |f ("`gre|p ^$FOLD|
|00006190| 45 52 20 2f 65 74 63 2f | 67 72 6f 75 70 60 22 20 |ER /etc/|group`" |
|000061a0| 21 3d 20 22 22 29 20 63 | 68 67 72 70 20 24 46 4f |!= "") c|hgrp $FO|
|000061b0| 4c 44 45 52 20 24 4d 48 | 50 41 54 48 2f 24 4d 53 |LDER $MH|PATH/$MS|
|000061c0| 47 53 5b 31 5d 0a 65 6e | 64 69 66 0a 0a 72 6d 20 |GS[1].en|dif..rm |
|000061d0| 2d 66 20 24 54 4d 50 46 | 49 4c 45 0a 0a 65 78 69 |-f $TMPF|ILE..exi|
|000061e0| 74 28 30 29 0a 0a 55 53 | 41 47 45 3a 0a 09 65 63 |t(0)..US|AGE:..ec|
|000061f0| 68 6f 20 27 75 73 61 67 | 65 3a 27 0a 09 65 63 68 |ho 'usag|e:'..ech|
|00006200| 6f 20 27 20 20 20 20 67 | 6c 6f 6d 20 2d 68 5b 65 |o ' g|lom -h[e|
|00006210| 6c 70 5d 27 0a 09 65 63 | 68 6f 20 27 20 20 20 20 |lp]'..ec|ho ' |
|00006220| 67 6c 6f 6d 20 5b 2b 66 | 6f 6c 64 65 72 5d 20 5b |glom [+f|older] [|
|00006230| 2d 61 5b 64 64 5d 5d 20 | 6d 65 73 73 61 67 65 2d |-a[dd]] |message-|
|00006240| 6c 69 73 74 27 0a 09 65 | 78 69 74 28 31 29 0a 20 |list'..e|xit(1). |
|00006250| 2b 24 46 4f 4c 44 45 52 | 20 24 47 4c 4f 4d 4d 53 |+$FOLDER| $GLOMMS|
|00006260| 47 60 0a 69 66 20 28 24 | 73 74 61 74 75 73 29 20 |G`.if ($|status) |
|00006270| 74 68 65 6e 0a 09 65 63 | 68 6f 20 67 6c 6f 6d 3a |then..ec|ho glom:|
|00006280| 20 66 69 72 73 74 20 6d | 65 73 73 61 67 65 20 69 | first m|essage i|
|00006290| 73 20 69 6e 76 61 6c 69 | 64 0a 09 65 78 69 74 28 |s invali|d..exit(|
|000062a0| 31 29 0a 65 6e 64 69 66 | 0a 0a 69 66 20 28 24 23 |1).endif|..if ($#|
|000062b0| 47 4c 4f 4d 4d 53 47 20 | 3e 20 31 29 20 74 68 65 |GLOMMSG |> 1) the|
|000062c0| 6e 0a 09 73 65 74 20 4d | 53 47 53 20 3d 20 28 24 |n..set M|SGS = ($|
|000062d0| 47 4c 4f 4d 4d 53 47 5b | 32 2d 5d 20 24 4d 53 47 |GLOMMSG[|2-] $MSG|
|000062e0| 53 29 0a 09 73 65 74 20 | 47 4c 4f 4d 4d 53 47 20 |S)..set |GLOMMSG |
|000062f0| 3d 20 24 47 4c 4f 4d 4d | 53 47 5b 31 5d 0a 65 6e |= $GLOMM|SG[1].en|
|00006300| 64 69 66 0a 0a 23 20 74 | 68 69 73 20 70 75 74 73 |dif..# t|his puts|
|00006310| 20 74 68 65 20 6d 65 73 | 73 61 67 65 73 20 69 6e | the mes|sages in|
|00006320| 20 6e 75 6d 65 72 69 63 | 61 6c 20 6f 72 64 65 72 | numeric|al order|
|00006330| 2c 20 74 68 72 6f 77 69 | 6e 67 20 6f 75 74 20 69 |, throwi|ng out i|
|00006340| 6e 76 61 6c 69 64 0a 23 | 20 6d 65 73 73 61 67 65 |nvalid.#| message|
|00006350| 20 6e 75 6d 62 65 72 73 | 0a 69 66 20 28 24 41 44 | numbers|.if ($AD|
|00006360| 44 20 21 3d 20 31 29 20 | 74 68 65 6e 0a 09 73 65 |D != 1) |then..se|
|00006370| 74 20 4d 53 47 53 20 3d | 20 60 70 69 63 6b 20 2b |t MSGS =| `pick +|
|00006380| 24 46 4f 4c 44 45 52 20 | 24 47 4c 4f 4d 4d 53 47 |$FOLDER |$GLOMMSG|
|00006390| 20 24 4d 53 47 53 60 0a | 09 69 66 20 28 24 73 74 | $MSGS`.|.if ($st|
|000063a0| 61 74 75 73 29 20 74 68 | 65 6e 0a 09 09 65 63 68 |atus) th|en...ech|
|000063b0| 6f 20 67 6c 6f 6d 3a 20 | 69 6e 76 61 6c 69 64 20 |o glom: |invalid |
|000063c0| 6d 65 73 73 61 67 65 20 | 69 6e 20 6c 69 73 74 0a |message |in list.|
|000063d0| 09 09 65 78 69 74 28 31 | 29 0a 09 65 6e 64 69 66 |..exit(1|)..endif|
|000063e0| 0a 65 6c 73 65 0a 09 73 | 65 74 20 4d 53 47 53 20 |.else..s|et MSGS |
|000063f0| 3d 20 60 70 69 63 6b 20 | 2b 24 46 4f 4c 44 45 52 |= `pick |+$FOLDER|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.